diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-21 20:12:28 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-21 21:55:28 +0530 |
commit | 4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d (patch) | |
tree | 9f8b016d71136e87bcf532f60ce4acfa03f6cedd /docs | |
parent | Incorrect position while adding a new service when there were pre-existing se... (diff) | |
download | ferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.tar.gz ferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.tar.zst ferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.zip |
style: consistent syntax style [skip ci]
Diffstat (limited to 'docs')
-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 | ||