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
takeEvery doesn't work when action type is a Symbol #246
Comments
The issue seems from here. String interpolation doesn't work for symbols |
fixed by c9c63d9 |
Seems to still be an issue when pattern is an array of symbols; the following line throws with TypeError: Cannot convert a Symbol value to a string: https://github.com/yelouafi/redux-saga/blob/master/src/internal/sagaHelpers.js#L64 |
(highly related question to this thread) When using a action creator function with a eg
Or more specifically: https://github.com/acdlite/redux-actions Is ensuring that |
@bvalosek What error do you get? |
I realized that this can't be implemented without breaking BC with your API. I was asking if, when passing in a function that overrides https://github.com/yelouafi/redux-saga/blob/master/src/internal/proc.js#L17 What I am doing now is that i've made a utility |
I found my way here looking to see if there's a way to automatically call I opened a new issue here with a suggested solution. |
Was this issue solved? I'm new to redux-saga and I couldn't make it work until I figured that the problem was my types were Symbols. I get no errors, no warnings, but the middleware doesn't catch any of my actions as long as the type is a Symbol. Are Symbols not supported or is this a bug? The problem seems to originate in the
This could be easily fixed by checking if the type is a symbol and if so we shouldn't turn it into a string.
|
When dispatching actions with a
type
equal to aSymbol
,takeEvery
throwsTypeError: Cannot convert a Symbol value to a string
.However, using
take
works fine.The text was updated successfully, but these errors were encountered: