How to use MobX and persist storage while redirecting #27602
Unanswered
bitsmyth
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can´t get the benefits from with-mobx example so I created a simple solution for persisting storage when redirecting.
_app.tsx
Then you can use
import { useStore } from 'pages/_app';
in your desired page or component. Would appriciate any feedback or possible cleaner way of implementing this basic scenario without exports in_app.tsx
.Beta Was this translation helpful? Give feedback.
All reactions