-
Notifications
You must be signed in to change notification settings - Fork 642
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
Redux dev tools one step behind. #287
Comments
I had exactly the same issue today. The connection works great, mobx-state-stree works great (it's an amazing library) but I noticed the same |
Are you guys using the remotedev that connects to the remotedev.io server or a local server? |
Yes, I'm using remotedev.io server. It's happening the same problem in the todomvc example. I think the problem is that redux for example runs a In our case, MST doesn't have an init action and I don't think that is necessary, maybe we can simulate it to fix this issue. |
Generating an `@@INIT` with the initial snapshot when setting up the
wrapper is trivial probably fixes it indeed
Op vr 11 aug. 2017 om 23:22 schreef Martín Acosta <[email protected]
…:
Yes, I'm using remotedev.io server. It's happening the same problem in
the todomvc example.
I think the problem is that redux for example runs a @@init action at the
begin and then the next actions can do a diff of the state correctly.
In our case, MST doesn't have an init action and I don't think that is
necessary, maybe we can simulate it to fix this issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#287 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhHa2O67bWaEA0qYtK3dZVyh0ctZuks5sXMYwgaJpZM4OtJMq>
.
|
Hi @mweststrate @mattiamanzati! I've been thinking that maybe there is an issue here: mobx-state-tree/src/interop/redux.ts Line 71 in 80d98e4
When you execute an action, MST detect the action using the Maybe we can add new middleware onAction(
target: IStateTreeNode,
beforeListener: (call: ISerializedActionCall) => void,
afterListener: (call: ISerializedActionCall) => void
) What do you think? |
Fixed in 0.10.3 |
Hi, thanks for all the amazing work! I have an issue with connecting Redux dev tools to mobx state tree. While the connection works like charm, it seem that the process is one step behind. Please check the GIF. When I switch my UI component from "signIn" view to "resend verification" it dev tools the view change is recorder as "verification -> sign in".
This is how I initialise my store:
The text was updated successfully, but these errors were encountered: