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

Open
#114 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
devtools

Research direction

Reproduce the Chrome extension issue with MobX 6.6.2, including changes made while the Connecting... message is visible. Inspect how mobx-devtools begins tracking and compare it with the immediately available window.__mobxGlobals.spyListeners array. Done means changes are tracked from MobX initialization without waiting for Connecting... to disappear.

Written by the indexing model from the issue text.

Description

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.

Dominant language
JavaScript
Stars
502
Forks
34
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mobxjs/mobx-devtools

All issues in mobxjs/mobx-devtools

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.