Closed sessionboy closed 5 years ago
如果不处理会报localStorage is not defined之类的错误。 是否有开关可以自定义中间件在server/browser阶段执行? 用的next.js。
localStorage is not defined
=> https://github.com/byte-fe/react-model#ssr-with-nextjs
process.browser
如果不处理会报
localStorage is not defined
之类的错误。 是否有开关可以自定义中间件在server/browser阶段执行? 用的next.js。