How to run store action from outside a component? #2110
Answered
by
KyryloSWAN
KyryloSWAN
asked this question in
Q&A
-
|
Is it possible to execute store action from a regular js function? What do I need to replace useLocalObservable hook call with to make it work? |
Beta Was this translation helpful? Give feedback.
Answered by
KyryloSWAN
Oct 27, 2023
Replies: 1 comment
-
|
I got access to the mst store outside React components by replace to in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KyryloSWAN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got access to the mst store outside React components by replace
to
in
StoreProvidercomponent.