Repository navigation
Warn if autorun or reaction does not access any observables? #3964
Closed
IanBellomy
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
see https://mobx.js.org/configuration.html#reactionrequiresobservable-boolean :) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Made a mistake that led to a reaction being created before the item it watched was made observable.
Was then a little surprised there wasn't some kind of check in reaction/autorun that at least one observable was accessed.
If discoverable, it smells like a situation worth issuing a warning about?
All reactions