This is an example of using Mobx root store pattern with hooks, and hydrating the stores via Next.js server side rendering. You can read it on dev.to
dsardar099/mobx-nextjs-root-store
Mobx root store implementation for next.js with server-side rendering
TypeScript