forked from meaton/react-webpack-comp-reg
-
Notifications
You must be signed in to change notification settings - Fork 1
Stores
Twan Goosen edited this page Dec 30, 2015
·
1 revision
There are various stores that are responsible for keeping different bits of information defining the application state. For more information on the concept of a store (as it is used here), read the page What is Flux? on the website of Fluxxor.
-
ItemsStore
holds the selected space and type, the currently loaded items within that space as well as the filtering/sorting information for the browser part of the application -
SelectionStore
holds the browser selection state, i.e. the list of selected items, the 'current' item and whether multiple selection is allowed -
TeamStore
holds the list of teams the user can choose from in various parts of the application -
ComponentDetailsStore
holds the spec object for the current item (used in both the browser and editor modes) and the components linked from the current component and the current expansion state. It also has the XML and comments, if loaded. Comments could potentially be split off into a separate store. -
EditorStore
hold various properties of the editor form and grid including the 'item description' object for the component that is being edited. The grid section of this store partially replicates the ItemsStore. -
MessageStore
collects messages emitted mostly on errors from all kinds of actions -
AuthenticationStore
holds the current authentication store, and listens to the event dispatched from the action that checks the current authentication state.