-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 wont update, despite not state mutation and proper connect state to props #1046
Comments
This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks! |
While I don't want to encourage using git issues as support, I do want to leave a trail for the next dev that runs into this. This definitely is a bug. It's been brought up in a few different places, including this ticket. Our team has been scratching our heads a bit around this same issue. I'm not sure what exactly the breaking change is, but I've created a reduced test case to show the behavior in action. Broken demo: https://codesandbox.io/s/yw042lwl4j The only difference between the two is the version of With that knowledge I found a big thread discussing this exact behavior. Short answer fix: make sure you're using a stable release. |
@zachwolf : yes, Since it was a test release, it was something that people had to explicitly choose to install, and so should also have been tried in an experimental branch of your app or something similar. |
Thanks @markerikson! I won't name names, but If it's of any value on how it ended up in our codebase, it was suggested as an update from
|
Interesting. @timdorr , is there any way we can at least remove the |
Yep, I'll do so when at a computer |
My header component is not logging my updated auth state after im authenticated
I seem to be doing everything that is required.
I dont mutate my state in the reducer
I connect my state to my Header props
I log this.props in componentWillMount()
but my console will not update my component after auth is set to the received token string
any ideas where my bug is? thanks a lot
My index file
My root reducer
My header component
My header actions
My auth reducer
My token functions
The text was updated successfully, but these errors were encountered: