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

Check 'injected' and 'fixed_reactive_declarations' independently #2631

Merged
merged 1 commit into from
May 4, 2019
Merged

Check 'injected' and 'fixed_reactive_declarations' independently #2631

merged 1 commit into from
May 4, 2019

Conversation

EmilTholin
Copy link
Member

injected and fixed_reactive_declarations are currently only checked if reactive_declarations has any elements, which makes it so reactive values derived from non-writable values will not end up in the rendered code unless there is at least one reactive value derived from writable values in the component.

By checking injected and fixed_reactive_declarations independently from reactive_declarations it works as expected.

Closes #2285

@Rich-Harris Rich-Harris merged commit 1eca19f into sveltejs:master May 4, 2019
@Rich-Harris
Copy link
Member

👍

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 can not depend on const "variables" (svelte v3)
2 participants