DEV Community

Discussion on: Mobx Server Side Rendering with Next.js

 
ivandotv profile image
Ivan V. • Edited
  1. useRootStore hook is just a way to get to the root store without explicitly declaring the store inside the component, it's just getting back the value that is stored in context, and if there is no context above, it throws.

3.Yes exactly :) You just need to guard against calling the hydration more than once, currently if will hydrate every time the Company component is rendered.