-
Notifications
You must be signed in to change notification settings - Fork 14
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
Not seeing actions for MST Store #3
Comments
This looks fine. Would you please be able to share a sample repo or may be some insight into how the store is structured ? This is how wiretap detects the actions. https://github.com/Raathigesh/wiretap/blob/master/packages/lib/src/mobxStateTreeTracker.js#L95-L97 I'll also try to replicate the issue. |
Here is what one of the stores looks like
|
I'll try digging into it as well when I have a chance. |
The store looks fine and it should be working. I'll look into it as well. Would you be able to provide the MST version as well please? |
All I can find so far is that my action does not have a |
Could you please let me know the Mobx state tree version? There is no
public api to get the actions so this is the workaround. I'll look into it.
…On Fri., 27 Oct. 2017, 5:07 pm Wesley Bercx, ***@***.***> wrote:
All I can find so far is that my action does not have a isMobxAction
property, which is what isAction() is looking for.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC9tQPeC_63EPy6kJUSPojAngPHLoo0Jks5swXMogaJpZM4QIUnR>
.
|
As it turns out isMobxAction() will not work consistently across all the versions. So there is not yet a proper way to identify the associated action of a model. MST does not provide a public API. I can think of an API for wiretap where the user provides the invocable actions as a string array.
This is not pretty and I really don't like to do this but it gets the job done. Looking forward to your feedback on an api like this. |
With [email protected], you could pass in the actions manually as a third parameter to the inspect("Todo", todo, ['addTodo']); This is a temporary workaround until there is a proper way to detect actions in MST. |
mobx-state-tree now does expose a |
Here I provide a repo based on mweststrate's MST course |
I may also be getting this issue. All I see with MST, is the initial shape of the store data... but it doesn't update when actions are fired or anything. |
I'm no longer maintaining wiretap. Probably I should update the readme to reflect that. If you are interested in taking over the project, please do let me know. |
Under the actions pane, I'm seeing
This observable does not have any actions associated.
These are all singleton MST stores, so they are already instantiated. All of the stores are showing up as expected, just missing actions.Let me know if I am missing anything.
The text was updated successfully, but these errors were encountered: