Answer the question
In order to leave comments, you need to log in
How to cache data in a ReactJS/Redux app?
Hello!
I am writing an app in React/Redux. There is an array of 2500 objects that I request from the server. I would like to cache it somewhere, but I don’t know where ..
You can save it in the state, but when you refresh the page, it will be loaded again ...
Answer the question
In order to leave comments, you need to log in
Save to local storage
Redux Persist will help you
There is also redux-offline , but it is less popular thing
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question