DEV Community

loading...

Discussion on: Mobx Server Side Rendering with Next.js

Collapse
ivandotv profile image
Ivan V. Author
  1. Depends what you want to do, if you have static rendering, than you need to hydrate the data on the server (when static page is built). You should not access the store in getServerSideProps rather you should just return data that will later be used do populate stores - passed to the root store provider by the page component.
  2. I'm not really sure what you mean.