ivandotv / react-hooks-mobx-root-store

Example implementation of mobx root store with react hooks
19 stars 5 forks source link

How to integrate mobx with nextjs app router ? #2

Open NileshJain78 opened 2 months ago

NileshJain78 commented 2 months ago

I am facing the difficulty in linking the mobx with the nextjs 14 app router, the problem is that when you create of use the context that component should be marked as the client component and if that is marked as the client component then the components using the mobx store will also become the client component then we won't be able to do the ssr

ivandotv commented 2 months ago

I'm yet to port this to the Next.js 14 - App Router.

NileshJain78 commented 2 months ago

ok if you find something then please mention