Annotation for unwatching changes to a property and a getter
When used as an annotation:
@observable
@computed
@nested
@unwatch
When used as a function:
unwatch(() => (model.field = "value")); Copy
unwatch(() => (model.field = "value"));
runInAction(() => { unwatch(() => { // isWatching === false }); // isWatching === FALSE <-- already in a transaction unwatch(() => { // isWatching === false });});// isWatching === TRUE Copy
runInAction(() => { unwatch(() => { // isWatching === false }); // isWatching === FALSE <-- already in a transaction unwatch(() => { // isWatching === false });});// isWatching === TRUE
Annotation for unwatching changes to a property and a getter
When used as an annotation:
@observable,@computedor@nested(and their variants) to stop watching changes.@unwatchis specified.When used as a function: