From a6e4cef4bb79c28d64a3c3997b5054e17283b5bb Mon Sep 17 00:00:00 2001 From: En Rong <53928333+chownces@users.noreply.github.com> Date: Thu, 2 May 2024 17:14:48 +0800 Subject: [PATCH] Fix combineSagaHandlers --- src/commons/redux/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commons/redux/utils.ts b/src/commons/redux/utils.ts index a12ee6fb4d..8f94c968c4 100644 --- a/src/commons/redux/utils.ts +++ b/src/commons/redux/utils.ts @@ -54,7 +54,7 @@ export function combineSagaHandlers< others?: (takeEvery: typeof saferTakeEvery) => SagaIterator ): () => SagaIterator { const sagaHandlers = Object.entries(handlers).map(([actionName, saga]) => - saferTakeEvery(actions[actionName].type, saga) + saferTakeEvery(actions[actionName], saga) ); return function* (): SagaIterator { yield* sagaHandlers; @@ -82,6 +82,7 @@ export function saferTakeEvery< } } + console.log(actionPattern) return takeEvery(actionPattern.type, wrapper); }