We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function initializeAuth () { return cookie('authToken') .step(setAuthToken) }
Gives the error .step is not a function. This makes sense because step isn't even in the source code.
.step is not a function
step
This is really confusing though. Probably I need something from redux-effects itself, but I don't know what.
redux-effects
The text was updated successfully, but these errors were encountered:
@0xR , i've found some examples here https://www.npmjs.com/package/redux-effects
Sorry, something went wrong.
Ah sorry, that was a holdover from an old way of doing things. I've updated the documentation. The correct way now is:
import {bind} from 'redux-effects' import {cookie} from 'redux-effects-cookie' import {createAction} from 'redux-actions' const setAuthToken = createAction('SET_AUTH_TOKEN') function initializeAuth () { return bind(cookie('authToken'), setAuthToken) }
No branches or pull requests
Gives the error
.step is not a function
. This makes sense becausestep
isn't even in the source code.This is really confusing though. Probably I need something from
redux-effects
itself, but I don't know what.The text was updated successfully, but these errors were encountered: