Skip to content

❓ MobX-State-Tree: Is there any elegant solution to the self limitation in actions? #2270

Answered by thegedge
ryskin asked this question in General
Discussion options

You must be logged in to vote

I think there three options right now:

  1. I believe this works if the actions are in the same actions block. self works for calling actions in previous actions blocks. Neither work for actions declared in future actions blocks.
  2. Use a library built on top of mobx-state-tree, like mobx-quick-tree or classy-mst. Disclaimer: I built the initial implementation of that library and work for gadget 🙂
  3. Find someone to complete the selfless model work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryskin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants