Skip to content

Commit 968f6e1

Browse files
authored
Merge pull request #369 from Mstrodl/patch-1
Make store state events' properties more obvious
2 parents 537b961 + 90e2867 commit 968f6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guide/11-state-management.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Each instance of `Store` has `get`, `set`, `on` and `fire` methods that behave i
2828
```js
2929
const { name } = store.get(); // 'world'
3030

31-
store.on('state', ({ current }) => {
31+
store.on('state', ({ current, changed, previous }) => {
3232
console.log(`hello ${current.name}`);
3333
});
3434

0 commit comments

Comments
 (0)