Next.js Discord

Discord Forum

redux-persist and nextjs SSR issue

Unanswered
Forest yellowjacket posted this in #help-forum
Open in Discord
Forest yellowjacketOP
I am using redux-persist and nextjs page router and hence the html is not getting rendered on the page source. Hence i want to know if there is any way to show the SSR results on the page source and solve this redux-persist error.

1 Reply

Forest yellowjacketOP
Update:
so i can render html in the page source now by doing:
<PersistGate loading={null} persistor={persistor}>
    {() => (
           <Component {...pageProps} />
    )}
</PersistGate>

but I am getting hydration error . How do i remove it because the webapp is functioning properly