Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select effect does not allow args #383

Open
miestr opened this issue Mar 15, 2022 · 0 comments
Open

select effect does not allow args #383

miestr opened this issue Mar 15, 2022 · 0 comments

Comments

@miestr
Copy link

miestr commented Mar 15, 2022

Redux saga is capable of handling selectors that take additional arguments, f.e.
mySelectorFn: (state, itemId) => state.content.map[itemId]

Whereas testSaga.select notation only accepts selector of type
((state) => any, args)

meaning that I can not write a mock efffect like
testSaga.select(mySelectorFn, 5).next(somePieceOfState)

Is there a way to pass this additional parameter into the effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant