Replies: 1 comment 7 replies
-
Hey @BrianHung - I think If that doesn't solve your problem, can you share some code to show me more specifics and I can try to help out? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a set of utility functions which take in the root state and modifies it using actions on the state model itself (and or its children models). I'm noticing that
decorate(atomic, utility)
doesn't work since the utility functions don't have an action context / aren't bounded to the model's actions.Is there a MST method to wrap utility functions in an action context, like in
mobx
there isrunInAction
,action
, ortransaction
?Beta Was this translation helpful? Give feedback.
All reactions