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

Don't hoist functions dependent on injected reactive variables #2703

Merged
merged 1 commit into from
May 9, 2019
Merged

Don't hoist functions dependent on injected reactive variables #2703

merged 1 commit into from
May 9, 2019

Conversation

EmilTholin
Copy link
Member

This PR makes it so functions dependent on injected reactive declaration variables are not hoisted out of the instance.

Closes #2687

@EmilTholin EmilTholin changed the title Don't hoist functions dependent on injected reactive declaration vari… Don't hoist functions dependent on injected reactive variables May 6, 2019
@Rich-Harris Rich-Harris merged commit c4e05f2 into sveltejs:master May 9, 2019
@EmilTholin EmilTholin deleted the hoisting-injected-reactive-vars branch May 9, 2019 06:31
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.

Functions using reactive variables are hoisted outside of the instance
3 participants