ComposableObservableStore

ComposableObservableStore

An ObservableStore that can composes a flat structure of child stores based on configuration

Constructor

new ComposableObservableStore(initStateopt, configopt)

Source:

Create a new store

Parameters:
Name Type Attributes Description
initState Object <optional>

The initial store state

config Object <optional>

Map of internal state keys to child stores

Methods

getFlatState() → {Object}

Source:

Merges all child store state into a single object rather than returning an object keyed by child store class name

Returns:
  • Object containing merged child store state
Type
Object

updateStructure(configopt)

Source:

Composes a new internal store subscription structure

Parameters:
Name Type Attributes Description
config Object <optional>

Map of internal state keys to child stores