The HTML page of the WeChat official account uses redux to save data, but if the page is refreshed, the saved data will inevitably be cleared. So the question is, how to save this data? How to save this data elegantly? Can the refreshed interface still retain its state?
The data is stored in the memory, and js will be re-executed after refreshing. Redux data will be lost. It can be stored in localStorage or indexedDB or request ajax to get the data from the server and assign it to redux.