-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getter event #11
Comments
Currently Observable Slim doesn't support this, but it's a great enhancement idea. I'm going to look into this one and hopefully have the functionality added within a few days. We have to be very careful with how we modify the |
You are right. For my use case it's enough, when last prop gets the event. So for example, if i'll be reading path foo.bar.baz - baz will be the accessed property of object bar - no need to get another event on bar as property of foo. Well, unless i will read foo.bar :D Not sure if that's doable this way. |
Unfortunately it's not possible to only trigger the In your example above, accessing the value |
Hey,
First of all, i love how i can get info about add/update on object properties, but.... Is it possible to somehow get notified when an object property is used? Like simple:
ObservableSlim callback would be called with "read" type, or something like that? Even ugly and hacky way is good enough for my use case.
I had that working with native Proxy but Your lib makes it so much easier to handle all the other cases.
The text was updated successfully, but these errors were encountered: