Skip to content
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

Closed
BanShan-Alec opened this issue Jul 17, 2023 · 1 comment
Closed

isAction is not working in MST #3726

BanShan-Alec opened this issue Jul 17, 2023 · 1 comment

Comments

@BanShan-Alec
Copy link

BanShan-Alec commented Jul 17, 2023

Intended outcome:

isAction can not work correctly in mobx-state-tree

Actual 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.

image

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",

@urugator
Copy link
Collaborator

MST's action isn't mobx's action, it's some abstraction on the top of it. You should seek help in mobx-state-tree repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants