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 :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions