Skip to content

Commit a6e4cef

Browse files
committed
Fix combineSagaHandlers
1 parent 6b35854 commit a6e4cef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commons/redux/utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function combineSagaHandlers<
5454
others?: (takeEvery: typeof saferTakeEvery) => SagaIterator
5555
): () => SagaIterator {
5656
const sagaHandlers = Object.entries(handlers).map(([actionName, saga]) =>
57-
saferTakeEvery(actions[actionName].type, saga)
57+
saferTakeEvery(actions[actionName], saga)
5858
);
5959
return function* (): SagaIterator {
6060
yield* sagaHandlers;
@@ -82,6 +82,7 @@ export function saferTakeEvery<
8282
}
8383
}
8484

85+
console.log(actionPattern)
8586
return takeEvery(actionPattern.type, wrapper);
8687
}
8788

0 commit comments

Comments
 (0)