Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

A path observer to an observable object should listen for any changes on that object #12

Open
jakemac53 opened this issue Apr 6, 2015 · 2 comments

Comments

@jakemac53
Copy link
Contributor

Repro: https://gist.github.com/jakemac53/aa2aceb4be88fdfd9efb

prints:

incrementing bar.foo.foo
Compound observer on `foo.foo` saw a change

when I would expect it to print:

incrementing bar.foo.foo
Compound observer on `foo` saw a change
Compound observer on `foo.foo` saw a change
@jakemac53
Copy link
Contributor Author

I think this might actually be as designed, but if that is the case then I think the design is wrong

@jakemac53
Copy link
Contributor Author

Ok, so I talked with @sigmundch about this and it is currently working as intended.

We should however provide some sort of interface for overriding this behavior so that if a path ends in an Observable it will also listen for changes on that object. This could probably be done with a named argument.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant