Replies: 2 comments 3 replies
-
Hi @smigfu - thanks for the question! I would probably lean towards the Next.js provided example, although it might be useful to mention that the That said, I don't use Next.js much these days, so I'm really just leaning into their own recommendation. I think the fact that their example uses MST specifically also adds to its strength over the MobX answer you've posted. Things may also change once the React Compiler is released, depending on how Next.js chooses to incorporate it. We're currently working on a path forward with the compiler, but just keep an eye out for some small changes over time. |
Beta Was this translation helpful? Give feedback.
-
Interestingly I am frequently running into this error when following the Next.js example. That's why I though I had to use the React Context directly. :-) What made me wonder in their examples, is that the Next.js with plain mobx and mobx-mst look so different. Is this due to some implementation within MST? Thanks for getting back on this and your answer. Looking forward for the Compiler option. |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I have seen multiple different approaches of using MST in a NextJS application and I wanted to know if there is an official recommendation by the MST folks or any of their users.
Most of the solutions boil down to:
As asked above, is there any recommendation to use one or the other?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions