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
Reducer not updating state #13
Comments
I've fixed it now, but how can I pass back an object to the reducer. |
Hello @bernardbaker , in order to pass an object to a reducer, you'll need to create an associated action ( App/Stores/Example/Action.js
The associated Reducer :
Here the object The action is called in the saga, when you receive the required result. I hope i understand your issue ! If you have any trouble don't hesitate to ask. |
Hi,
Thanks for getting back to me. The code example you have sent has been
helpful.
I have another question, which is... when running the app in developer
mode, how do I reset the state?
Regards,
Bernard Baker
…On Tue, 20 Nov 2018, 15:01 DOLLE, ***@***.***> wrote:
Correction anglaise :
Hello @bernardbacker, in order to pass an object to a reducer, you'll need
to create an associated action (
|
In the boilerplate you have an exemple : App/Stores/Example/InitialState.js
So, in dev mode, each time you reload your app the state |
I will close this issue now. I hope i helped you, if you have any troubles you can re-open this issue |
I have taken a copy of the boilerplate and I'm having trouble getting the reducer to update the state.
App/Sagas/index.js
App/Sagas/WelcomeSaga.js
App/Stores/Welcome/Actions.js
App/Containers/WelcomeScreen/WelcomeScreen.js
The text was updated successfully, but these errors were encountered: