Closed WolffDev closed 5 years ago
As I said, I'm new to react/redux. I did some rubberduck debugging, and found an error in my code - it has been starring at me all day. I forgot to read props correctly in App.js:
// App.js
const mapStateToProps = state => {
return {
isAuthenticated: state.isAuthenticated,
uid: state.uid
}
}
Should be:
// App.js
const mapStateToProps = state => {
return {
// changed to state.auth.isAuthenticated
isAuthenticated: state.auth.isAuthenticated,
// changed to state.auth.uid
uid: state.auth.uid
}
}
Hey, I am kinda new to react and redux. For some reason, my state props are not showing up in my popup component. It seems like the store is not connected properly, somehow. When I fire the action, the state gets updated, but the UI is not updating - somehow it's not synced with the state. What am I missing?
The popup.js is the browser_action that gets rendered when the user clicks the extension icon.
Here are my files: