-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isAction
is not working in MST
#3726
Labels
Comments
MST's action isn't mobx's action, it's some abstraction on the top of it. You should seek help in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Intended outcome:
isAction
can not work correctly in mobx-state-treeActual outcome:
When I use mobx-state-tree,I need judge a function is mobx action, but
isAction
always return false, I don't think my code is bad.So I report this bug.
Now, I use a Private property
_isMSTAction
to resolve this bug, but using a Private property is not a choice for clean code.How to reproduce the issue:
https://codesandbox.io/s/mobx-state-tree-playground-forked-yxhy6p?file=/src/index.js
Versions
"mobx": "^6.9.0", "mobx-react-lite": "^3.4.3","mobx-state-tree": "^5.1.8",
The text was updated successfully, but these errors were encountered: