Set to true when dispose is called.
true
If true, onUpdate will not be called when value is updated.
bool wasDisposed = false;