mobxjs / mobxjs/mobx-devtools

Stuck on 'looking for mobx...' when trying to inspect MST.

Open
#61 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I am using mobx-devtools to inspect the mobx-state-tree of my React Natiive App in my browser. I have installed mobx-devtools-mst and exported my rootstore with the makeInspectable function. However, when i open mobx devtools in my browser, it keeps hanging on 'looking for mobx....'.

import { types, flow } from 'mobx-state-tree';
import makeInspectable from 'mobx-devtools-mst';
import User from './User';
import Deals from './Deal';

const RootStore = types.model({
  user: User,
  deals: Deals
});

export default makeInspectable(RootStore.create({ user: User.create(), deals: Deals.create() }));

image

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.

Research direction

Start with the reported React Native setup and the makeInspectable(RootStore) entry point, then reproduce the browser devtools state that remains on “looking for mobx...”. Check how the devtools detects the inspected store and compare that path with the mobx-devtools-mst integration. Done means the root store is discovered and its MST state can be inspected instead of hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
devtools, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.