corvid-storeon
Advanced tools
Comparing version
{ | ||
"name": "corvid-storeon", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A tiny event-based state manager Storeon for Corvid by Wix", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,3 +62,3 @@ # corvid-storeon | ||
Latest available version: `v1.1.0` | ||
Latest available version: `v2.1.0` [Check status](https://www.wix.com/corvid/npm-modules) | ||
@@ -72,4 +72,6 @@ <img src="assets/cs.png" width="500" alt="Install corvid-storeon"> | ||
Creates a store that holds the complete state tree of your app | ||
and returns 4 methods for work with the app state. [Create Store modules API](#store). | ||
and returns 4 methods for work with the app state. | ||
[Create store modules API](#store). | ||
```js | ||
@@ -224,3 +226,3 @@ const { getState, dispatch, connect, connectPage } = createStore(modules); | ||
```js | ||
store.on("@changed", (state, data) => { }); | ||
store.on("@changed", (state, changes) => { }); | ||
``` | ||
@@ -227,0 +229,0 @@ |
12888
0.28%293
0.69%5
-16.67%