Skip to main content
7 events
when toggle format what by license comment
Aug 30, 2023 at 8:18 review Close votes
Sep 3, 2023 at 0:02
Aug 27, 2023 at 21:55 comment added Drew Reese Isn't there some "use client" directive you should specify in the component _app.js file so it's rendered client-side?
Aug 27, 2023 at 21:43 comment added Brightcode @DrewReese no am only trying to use it on the client side not on the server side, cause i will still need to export it as a static site to my cpanel
Aug 27, 2023 at 21:19 comment added Drew Reese Are you trying to instantiate the store on the server side using Server-Side Rendering? Redux-Persist works on the client side.
Aug 27, 2023 at 20:53 comment added Brightcode @SyedArifIqbal yes i have checked all that as you can see in the code, even before reloading i check my state in the devtools to make sure that the data is still inside it before reloading the page and after that it just gets wiped out
Aug 27, 2023 at 20:47 comment added Syed Arif Iqbal 1. Ensure that the whitelist configuration in your persistConfig includes "user", as you intend to persist only the user slice. Make sure that the name matches the slice you're trying to persist. 2. The setUser action updates the user state, including the access_token. Make sure that this action is not being dispatched again with an empty access_token after the initial setup. You might want to add a condition to avoid setting an empty access_token.
Aug 27, 2023 at 20:41 history asked Brightcode CC BY-SA 4.0