mobxjs / mobx-devtools

Mobx Devtools (React, Chrome Extension) - Looking for maintainers! https://github.com/mobxjs/mobx-devtools/issues/55
MIT License
489 stars 33 forks source link

Unable to see Initial State in MST #30

Open jonavila opened 6 years ago

jonavila commented 6 years ago

Hi, I'm using the mobx-devtools-mst package and I can't seem to be able to capture the Initial State. I'm able to see the patches, but the initial state always shows up empty even though I'm calling makeInspectable after I've initialized my main store.

Currently using: mobx-devtools-mst: 0.9.14 mobx: 4.2.0 mobx-state-tree: 2.0.4 mobx-react: 5.0


  {
// some props to initialize state
  },
  {
// some objects for dependency injection
  },
));

makeInspectable(myStore);```
eugene-beliaev commented 6 years ago

I'm experiencing the same issue. I tried to rerwite a sorage using 'mobx-state-tree' library and now it works. My storages is written using ES6 classes, so does it mean that I must use 'mobx-state-tree' instead of them to have ability to watch state tree?

liuliangsir commented 3 years ago

Same issue here, has there been any updates? The following is a short video, which can be used to clarify more details.

https://user-images.githubusercontent.com/8049878/123041740-4ff26c80-d428-11eb-9ca2-d56cd7d2b804.mp4

@epodgaetskiy cc