- commit
- 7b1c7d5
- parent
- 2e4ab51
- author
- Eric Bower
- date
- 2023-12-16 03:14:05 +0000 UTC
fix(store): cache timer mdw
1 files changed,
+1,
-3
+1,
-3
1@@ -49,9 +49,7 @@ export function timer(timer: number = 5 * MINUTES) {
2 const map: { [key: string]: Task<unknown> } = {};
3
4 function* activate(action: ActionWPayload<CreateActionPayload>) {
5- yield* call(function* () {
6- return op(action);
7- });
8+ yield* call(() => op(action));
9 yield* sleep(timer);
10 delete map[action.payload.key];
11 }