Skip to content

Commit

Permalink
Fix combineSagaHandlers
Browse files Browse the repository at this point in the history
  • Loading branch information
chownces committed May 2, 2024
1 parent 6b35854 commit a6e4cef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commons/redux/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -82,6 +82,7 @@ export function saferTakeEvery<
}
}

console.log(actionPattern)
return takeEvery(actionPattern.type, wrapper);
}

Expand Down

0 comments on commit a6e4cef

Please sign in to comment.