observable-slim icon indicating copy to clipboard operation
observable-slim copied to clipboard

Events...

Open fabioricali opened this issue 7 years ago • 1 comments

there is a way to detect before update or delete? like an event?

fabioricali avatar Apr 06 '18 20:04 fabioricali

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!

ElliotNB avatar Apr 07 '18 02:04 ElliotNB