rslavin / TabletopLFG

Web-based tabletop game group finder.
2 stars 0 forks source link

AppContainer - this.props.user is null, should be the current logged in user #67

Closed jbush7401 closed 7 years ago

jbush7401 commented 7 years ago

Only giving this to you because I think you can hunt it down faster. For some reason in AppContainer user isnt getting populated so the children have it as null. I have no idea how it populates for SessionPage and it doesnt for header

rslavin commented 7 years ago

props.user is only populated if the user is logged in. It's all done with redux, too. It's populated using actions/index.js#updateUser(). Specifically, it happens in a two places: when a user logs in using LoginForm or when a user first loads the website if they have a token in localstorage (in which case LoginMenu does it with componentWillMount()).

As far as I can tell, it's working as intended. Can you show me how to reproduce the issue?