Skip to content

Set mutated const variables as reactive dependencies #2755

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

Merged
merged 1 commit into from
May 15, 2019
Merged

Set mutated const variables as reactive dependencies #2755

merged 1 commit into from
May 15, 2019

Conversation

EmilTholin
Copy link
Member

By taking mutated non-writable variables into consideration when looking for reactive declaration dependencies, reactive declarations using them will be run again when they are mutated.

Closes #2728

@Rich-Harris Rich-Harris merged commit c67f534 into sveltejs:master May 15, 2019
@EmilTholin EmilTholin deleted the mutated-const-reative-dependency branch May 15, 2019 21:54
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

Successfully merging this pull request may close these issues.

Reactive declarations don't fire when a const is mutated
3 participants