cohensha / Kabom

1 stars 0 forks source link

Rendering issue on home.js #9

Closed jonathanwang415 closed 7 years ago

jonathanwang415 commented 7 years ago

Commit: c82f1d6370461c7a4aef91dbaba754c7eaba0dd2

When the user first creates the profile, every works as it should. However I think the state is being saved because if I manually change the createdProfile variable in firebase, what the code should do is pull that createdProfile variable from firebase every time when it renders the home page.

For some reason, it's not. Console.logs are also being ignored in the render function in home.js. Definitely something we should go back and visit

jonathanwang415 commented 7 years ago

http://redux.js.org/docs/faq/ReactRedux.html#react-not-rerendering

jonathanwang415 commented 7 years ago

Fixed: Just moved the checkIfUserCreatedProfile to login instead and handled the redirects there.