-
Notifications
You must be signed in to change notification settings - Fork 12
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
Listen for new keys? #13
Comments
Actually thinking about it, it is possible to hook into the creation function passed during construction. I guess diffing is more idiomatic? |
The design of I think adding |
@nrw by design there should be an When you listen to a change you can read the I've used this in the |
@frankier does inspecting the |
I'm interested in how to listen for new keys. It seems straightforward to listen for changes to an existing key if it's an observable, or listen for any change to the varhash or its children (I think - slightly hazy on how this works). But there doesn't seem to be any way to determine which/whether a key has been added or removed other than by diffing the whole hash with its previous value. Is this by design or would the addition of onaddition ondeletion methods which supply (key, value) and (key) to the callback respectively be reasonable?
The text was updated successfully, but these errors were encountered: