There is a very handy library called redux-persist that allows you to persist the global state of your application’s Redux store in local storage. This is particularly useful when your JavaScript application breaks on page reload, which often happens during development with hot module replacement.
This article explains how to integrate this library into your web application if you are using the Redux Toolkit. Redux Toolkit is an opinionated toolset for Redux development that provides excellent defaults, and it is my preferred way to set up the Redux store.
Continue reading “Redux Persist with Redux Toolkit”