A
A
Alexander Bondarenko2022-02-23 16:46:04
React
Alexander Bondarenko, 2022-02-23 16:46:04

How to save redux data after reboot?

Hello everyone, tell me please, how can I save redax data after a reboot?
I have logic to display by id and corresponding Route under that. For example, if id is 1, then display one component, if 2 - then another, and so on. Is it possible to somehow bind id to Route so that after reloading the page, the required id is set along this path?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Abramov, 2022-02-23
@Gvoz1

redux persist Makes a copy of the store in localstorage, certain fields can be configured for storage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question