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

onstate: changed is empty if data property not mentioned in template #1356

Closed
aphitiel opened this issue Apr 20, 2018 · 1 comment
Closed
Labels

Comments

@aphitiel
Copy link
Contributor

REPL contains just a property test and an onstate listener.

onstate fires, but changed is empty. If test is used in the template, changed is {test: 1}, as expected.

aphitiel added a commit to aphitiel/svelte that referenced this issue Apr 22, 2018
Rich-Harris added a commit that referenced this issue Apr 22, 2018
Rich-Harris added a commit that referenced this issue Apr 22, 2018
Rich-Harris added a commit that referenced this issue Apr 22, 2018
Report initial `changed` based on state, not expected properties
@Rich-Harris
Copy link
Member

This is fixed in 2.1.1, thanks

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

No branches or pull requests

2 participants