-
Notifications
You must be signed in to change notification settings - Fork 7
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
mobx-log with Redux Devtools does not properly set state in the RD log entry for observable nested objects #43
Comments
Hi, I’ve copied a part of your code with a nested object, and the issue isn’t reproducible for me. Code: May I ask for a simple GitHub reproduction as well as screenshots from the devtools? To avoid setting up everything from scratch, you can fork the repo, go to the I use this subproject to test the library |
Thanks for investigating. I forked the repo, modified stopwatch-store.ts, and was able to repro, although the behavior seems slightly different. Commit in my fork: vaughnkoch@e13d240 I labeled the scenarios A through D below. I also attached a zipfile with the screenshots. mobx-log screenshots - Issue 43.zip
|
@vaughnkoch Thanks. Try installing an experimental fix |
Hi @kubk, I tried mobx-log@beta (mobx-log@2.2.2-beta.1), and it appears to fix the problem, thanks! When do you think this new fix will be available in non-beta? Also, I'd be curious to know what the fix was. |
@vaughnkoch 2.2.3 is ready. Thanks for reporting the issue. I had to use setTimeout to delay the creation of the store snapshot. The previous implementation only utilized spyReportStart/spyReportEnd, and it seems like it wasn’t enough: https://mobx.js.org/analyzing-reactivity.html#:~:text=report%2Dend-,spyReportEnd,-%3Dtrue%2C%20time%3F%20(total |
Hi, thank you for building this useful library. :)
I've been playing with Redux Devtools and mobx-log, see below. Each action has an entry in RD, which is very useful. However, the state associated with each action seems to depend on what's passed in:
Here's my store:
I'm using the following:
Actual:
Expected:
If I've missed some configuration or other gotcha, please let me know.
The text was updated successfully, but these errors were encountered: