You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/!\ You are using legacy implementaion. Please update your code: use createWrapper() and wrapper.withRedux().
TypeError: Cannot read property 'getState' of undefined
at Function.getInitialProps (B:\dev\sites\typescript-nextjs-redux-toolkit-material-ui-example\.next\server\pages\_document.js:1020:31)
The text was updated successfully, but these errors were encountered:
Actually, I've been trying to support next-redux-wrapper v6 for some time now, but I've failed many times. The other boilerplate git repositories have been out of date for a long time, and there's nothing in the official examples that I can refer to.
Cannot read property 'getState' of undefined has been resolved, but I have not been able to resolve the following SSR issues.
Warning: Prop `className` did not match. Server: "MuiPaper-root makeStyles-root-177 makeStyles-root-178 MuiPaper-elevation6 MuiPaper-rounded" Client: "MuiPaper-root makeStyles-root-177 makeStyles-root-179 MuiPaper-elevation6 MuiPaper-rounded"
I haven't figured out how to solve it, and I can't motivate myself to continue... 😫
However, Next.js is reluctant to SSR and Redux , and in the future, it should be aggressive on Next.js + SWR static sites, so you might want to avoid betting on the combination of Next.js + SSR + Redux.
Hi - this is very cool, thanks. Can you update it with the latest libs?
The text was updated successfully, but these errors were encountered: