File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ all state encapsulated in one place. This design seeks to achieve a
1010reasonable trade off between the simplicity of singletons and the
1111privacy of class instances.
1212
13+ ---
14+
1315[ ![ Circle CI] ( https://circleci.com/gh/vigetlabs/microcosm.svg?style=svg )] ( https://circleci.com/gh/vigetlabs/microcosm )
1416
17+ ---
18+
1519## Overview
1620
1721Within the context of the Flux model, Microcosm treats actions and
@@ -20,7 +24,11 @@ stores as singletons, however they do not contain any state.
2024Actions are called within the context of a particular instance of Microcosm:
2125
2226``` javascript
23- app .push (Action, parameters)
27+ let Action = function (params ) {
28+ return params
29+ }
30+
31+ app .push (Action, params)
2432```
2533
2634Stores hold no state. Stores are collections of functions that transform
You can’t perform that action at this time.
0 commit comments