diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/lib/Reaction.ts (renamed from src/stores/lib/Reaction.js) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.ts index 7e1bc685e..0ca24a6fa 100644 --- a/src/stores/lib/Reaction.js +++ b/src/stores/lib/Reaction.ts | |||
@@ -20,12 +20,10 @@ export default class Reaction { | |||
20 | 20 | ||
21 | stop() { | 21 | stop() { |
22 | if (this.isRunning) { | 22 | if (this.isRunning) { |
23 | this.dispose(); | 23 | this.dispose?.(); |
24 | this.isRunning = false; | 24 | this.isRunning = false; |
25 | } | 25 | } |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | export const createReactions = (reactions) => ( | 29 | export const createReactions = reactions => reactions.map(r => new Reaction(r)); |
30 | reactions.map((r) => new Reaction(r)) | ||
31 | ); | ||