'Is it safe to store user's data using react redux persist

I was using react redux but, when I refresh the data was deleted, so now I am planning to use react redux persist to keep data stored.



Solution 1:[1]

I would recommend you to use backend instead of handling this thing using react, what I am trying to say is make one api in backend which will provide you the data of the user which is currently logged in using the auth token which you will pass in the header and call that API first whenever the page is refreshed and directly store the response into your redux this way even on refresh your data will not vanish away.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 smith chokshi