Skip to content
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

Watch on objects #1

Open
Uffman opened this issue Jan 24, 2019 · 2 comments
Open

Watch on objects #1

Uffman opened this issue Jan 24, 2019 · 2 comments

Comments

@Uffman
Copy link

Uffman commented Jan 24, 2019

Watch on objects does not work correctly.

watchThingsDeeply(newVal, oldVal)
newVal and oldVal objects are the same.

If you watch only property in works correctly

@jsonberry
Copy link
Owner

Hey @Uffman! Can you post a code example?

I've seen people run into an issue with that before, but it happened to just be syntax issues.

@Uffman
Copy link
Author

Uffman commented Jan 29, 2019

You can run your example from components/watch It has the same issues.

If you change anObj.foo, property, then both newVal object and oldVal object in method watchThingsDeeply has the same property value for foo property.

Method watchFooThings works fine

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

No branches or pull requests

2 participants