Skip to content

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

Merged
Rich-Harris merged 1 commit intosveltejs:masterfrom
EmilTholin:hoisting-injected-reactive-vars
May 9, 2019
Merged

Don't hoist functions dependent on injected reactive variables#2703
Rich-Harris merged 1 commit intosveltejs:masterfrom
EmilTholin:hoisting-injected-reactive-vars

Conversation

@EmilTholin
Copy link
Copy Markdown
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
Comment thread src/compile/Component.ts
@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