Problems with local storage and acquisition of redux information

how to store redux information without losing related information after page refresh, do localstorage or cookie local storage? If you are doing local storage, how do you get the relevant redux information after entering the page for the first time? Is there a better example to refer to

Mar.18,2021

1. No loss can only be stored in localstorage or cookie
2. Each time the page is refreshed, the latest data is pulled and stored in localstorage. The data needed in the component is obtained directly from redux

.
Menu