observable-slim
observable-slim copied to clipboard
Events...
there is a way to detect before update or delete? like an event?
At the moment the ObservableSlim doesn't support that functionality. The primary goal of the library is to observe changes immediately after they happen rather than intercept them before they occur.
It would be possible to do what you describe and it would be a pretty simple change. The _notifyObservers function would just need to be invoked before the change is applied to the target object.
I'm marking this as an enhancement for future development. Thanks for the input!