diff options
Diffstat (limited to 'docs/example-feature/store.js')
-rw-r--r-- | docs/example-feature/store.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 | ||