diff options
Diffstat (limited to 'docs/example-feature')
-rw-r--r-- | docs/example-feature/index.js | 4 | ||||
-rw-r--r-- | docs/example-feature/store.js | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/docs/example-feature/index.js b/docs/example-feature/index.js index 84ee84b5e..0ce068e26 100644 --- a/docs/example-feature/index.js +++ b/docs/example-feature/index.js | |||
@@ -29,8 +29,6 @@ export default function initAnnouncements(stores, actions) { | |||
29 | resetState(); // Reset state to default | 29 | resetState(); // Reset state to default |
30 | } | 30 | } |
31 | }, | 31 | }, |
32 | { | 32 | { fireImmediately: true }, |
33 | fireImmediately: true, | ||
34 | }, | ||
35 | ); | 33 | ); |
36 | } | 34 | } |
diff --git a/docs/example-feature/store.js b/docs/example-feature/store.js index de27eae86..9fc86de36 100644 --- a/docs/example-feature/store.js +++ b/docs/example-feature/store.js | |||
@@ -18,8 +18,12 @@ export class ExampleFeatureStore extends Store { | |||
18 | 18 | ||
19 | // Update the name on the state when the request resolved | 19 | // Update the name on the state when the request resolved |
20 | reaction( | 20 | reaction( |
21 | () => this.getNameRequest.result, | 21 | () => ( |
22 | name => this._setName(name), | 22 | this.getNameRequest.result |
23 | ), | ||
24 | (name) => { | ||
25 | this._setName(name); | ||
26 | }, | ||
23 | ); | 27 | ); |
24 | } | 28 | } |
25 | 29 | ||