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

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

Open
digistaal opened this issue Oct 17, 2019 · 3 comments
Open

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

digistaal opened this issue Oct 17, 2019 · 3 comments

Comments

@digistaal
Copy link

digistaal commented Oct 17, 2019

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

@joebnb
Copy link

joebnb commented Jul 14, 2020

still relevant

@oransherf
Copy link

@joebnb Did you find a solution?

@joebnb
Copy link

joebnb commented Oct 14, 2020

@joebnb Did you find a solution?

import _ from 'lodash';
function inspectProxy(...args) {
    console.log(..._.cloneDeep(args));
}

use lodash

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

3 participants