score:0

I have something similar to you. Here I use React-Router V4 and a persist-like library.

Your router/routes doesn't need to be aware of the persist. They should rely on your redux's store. The persist should rehydrate your store with all the data.

I didn't see where you are using the PrivateRoute component in your example. Where is it?


Related Query

More Query from same tag