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
Component not re-rendering #1560
Comments
|
As @sacho said, using |
Yeah. Note that |
gah, my newb is showing. Thanks all! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I checked the docs & this issue, but none of the troubleshooting did the trick.
I have a sign-in component for user auth/account creation. I display it in a side-nav menu, so to easily navigate to the first page in registration, i have the following check in my component lifecycle:
where
formIndex
tells my render function which page to render.Anywho, when I click 'Create account,' I see the correct actions fire in Redux DevTools, and my button turns to a spinner.
DevTools shows that the user has account has been created, and the user is logged-in. So, the form should move to the first page of a small questionairre, but it doesn't. I even put a console.log statement in my componentWillMount method, but it doesn't fire when the props change (ie, those tied to redux store).
While trouble-shooting, I also put a console.log in my mapStateToProps function to check when it was firing.
As you can see, the value I'm monitoring in that console.log is changing from
undefined
totrue
.So, my reducers all correctly use Object.assign(), my DevTools look good, and on refresh, everything works like a charm.
just for completeness, here's the reducer that handles the last few actions fired in my account creation logic.
Where should I look next?
The text was updated successfully, but these errors were encountered: