From 7b1c7d5739e8419970036d65bb3d02b7dc0cfaf3 Mon Sep 17 00:00:00 2001 From: Eric Bower Date: Fri, 15 Dec 2023 22:14:05 -0500 Subject: [PATCH] fix(store): cache timer mdw --- store/supervisor.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/store/supervisor.ts b/store/supervisor.ts index 084bce3..cd9d2d9 100644 --- a/store/supervisor.ts +++ b/store/supervisor.ts @@ -49,9 +49,7 @@ export function timer(timer: number = 5 * MINUTES) { const map: { [key: string]: Task } = {}; function* activate(action: ActionWPayload) { - yield* call(function* () { - return op(action); - }); + yield* call(() => op(action)); yield* sleep(timer); delete map[action.payload.key]; }