There is a pretty handy library called redux-persist that persists the global object from the application’s redux store in the local storage. This is useful when the javascript application breaks on page reaload which happens for example all the time when developing with hot module replacement.
This article explains how to integrate this library in your web application when you are using the redux toolkit. It is an opinionated toolset for redux development that provides really good defaults and it is my prefered way to setup the redux store.
Continue reading “Redux Persist with Redux Toolkit”