mobx-state-tree icon indicating copy to clipboard operation
mobx-state-tree copied to clipboard

Snapshot is created/updated without reading any observable value

Open VitaliiK91 opened this issue 4 years ago • 1 comments

Bug report

  • [x] I've checked documentation and searched for existing issues
  • [x] I've made sure my project is based on the latest MST version
  • [ ] Fork this code sandbox or another minimal reproduction.

Sandbox link or minimal reproduction code I use the following mobx configuration:

configure({
    enforceActions: "observed",
    computedRequiresReaction: true,
    reactionRequiresObservable: true,
});

Describe the expected behavior Should not get warnings

Describe the observed behavior I get mobx warning on the first render of components using the store. The warning: derivation.ts:198 [mobx] Derivation [email protected] is created/updated without reading any observable value

VitaliiK91 avatar Jan 28 '21 17:01 VitaliiK91

Also trying to figure out how to deal with this right now. Found someone in chat also had a similar issue.

austinbutler avatar Jun 08 '21 20:06 austinbutler

Hey @VitaliiK91 and @austinbutler - sorry it took so long for anyone to get back to you here.

Unfortunately, I can't get access to that old Gitter thread. I know this issue is old, but I'm wondering:

  1. Did either of y'all find a good solution to the problem? If so, will you please post it here for others?
  2. Is this still an issue for you? If so, can you please post a reproducible example?

I know this issue is pretty old, so no worries if you've moved on. Feel free to ignore and I'll close this out in two weeks or so.

coolsoftwaretyler avatar Jun 28 '23 03:06 coolsoftwaretyler

Been about two weeks, I'm gonna close this out. Sorry we never got around to this for ya!

coolsoftwaretyler avatar Jul 13 '23 22:07 coolsoftwaretyler