onChange() fires only once if a child object referenced multiple times in a watched object is modified
Opened this issue · 0 comments
dddpt commented
Hi all!
I am not sure if this is a bug or a feature.
I'll call it a bug as I would have expected a different behavior.
Current behaviour:
- I have a child object (let's call it
multiRefChild
) referenced at multiple places in a watched objectobj
asobj.child1
andobj.child2
. - If I change a property
a
in theobj.child1
it fires anonChange()
event for theobj.child1.a
path, but not for theobj.child2.a
path, even thoughobj.child2.a
has also changed.
Expected behaviour:
- If I change a property
a
of theobj.child1
it fires anonChange()
event for theobj.child1.a
path as well as theobj.child2.a
path.
Is this a bug or a feature?
If it's a feature, it might deserve a mention in the readme ;-)
Thanks for the library and for your time!