With react-redux all the data is contained in the store. How can I maintain the state that is stored in our store when, for example, opening multiple child tabs from a parent page or after a page refresh?
相关问题
- How to toggle on Order in ReactJS
- Refreshing page gives Cannot GET /page_url in reac
- Adding a timeout to a render function in ReactJS
- React Native Inline style for multiple Text in sin
- Issue with React.PropTypes.func.isRequired
相关文章
- Why would we use useEffect without a dependency ar
- Is it possible to get ref of props.children?
- Stateless function components cannot be given refs
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
- Material-UI [v0.x] RaisedButton on hover styles
- Remove expo from react native
- ReactJS toLowerCase is not a function
The redux-localstorage-simple package does what you require. It is a redux middleware component that will automatically serialize redux state to local storage and restore that state, as redux initial-data, on startup.
The package also supports namespaces for the redux state trees it stores so this should allow you to clone distinct state-trees when creating new tabs.