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

mob-devtools not tracking changes until 'Connecting...' disappears #114

Open
gmaxlev opened this issue Apr 6, 2023 · 0 comments
Open

mob-devtools not tracking changes until 'Connecting...' disappears #114

gmaxlev opened this issue Apr 6, 2023 · 0 comments

Comments

@gmaxlev
Copy link

gmaxlev commented Apr 6, 2023

I use mobx-devtools as an extension in Google Chrome with MobX 6.6.2.

mobx-devtools only starts working and tracking changes when MobX is initialized immediately after the page has loaded. And even in that case, it skips changes until the message Connecting... disappears.

I'm not sure what API mobx-devtools uses to track changes, but it's possible to track changes using the window.__mobxGlobals.spyListeners array. window__mobxGlobals is available immediately, and I have to use it when "mob-devtools" shows the message Connecting... or simply doesn't work.

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

No branches or pull requests

1 participant