V
V
Vladimir Konovalenko2019-06-05 11:04:29
caching
Vladimir Konovalenko, 2019-06-05 11:04:29

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

1 answer(s)
S
Sergey Suntsev, 2019-06-05
@konovalenko_v

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 question

Ask a Question

731 491 924 answers to any question