You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brad,
Thanks for educating the coding masses! I can't imagine were I would be without having you walk me through the steps needed to build MERN apps.
You have all of the localStorage method calls inside of the reducers. While this works, Redux suggests not producing side-effects from reducers. I put them inside of the action creators (which I think is where they are supposed to be) and things work as expected. https://redux.js.org/glossary#reducer
The text was updated successfully, but these errors were encountered:
Brad,
Thanks for educating the coding masses! I can't imagine were I would be without having you walk me through the steps needed to build MERN apps.
You have all of the localStorage method calls inside of the reducers. While this works, Redux suggests not producing side-effects from reducers. I put them inside of the action creators (which I think is where they are supposed to be) and things work as expected.
https://redux.js.org/glossary#reducer
The text was updated successfully, but these errors were encountered: