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

Object spreading does not pick up new properties #29

Open
aleclarson opened this issue Aug 22, 2020 · 0 comments
Open

Object spreading does not pick up new properties #29

aleclarson opened this issue Aug 22, 2020 · 0 comments
Labels
limitation Design limitations (or JavaScript itself) are to blame

Comments

@aleclarson
Copy link
Collaborator

const data = o({ a: 1 })
auto(() => console.log('changed:', { ...data })

// New property is not observed.
data.b = 1
@aleclarson aleclarson added the limitation Design limitations (or JavaScript itself) are to blame label Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation Design limitations (or JavaScript itself) are to blame
Projects
None yet
Development

No branches or pull requests

1 participant