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

Pass hoisted values through to slots #3124

Merged
merged 5 commits into from
Jun 29, 2019
Merged

Pass hoisted values through to slots #3124

merged 5 commits into from
Jun 29, 2019

Conversation

Rich-Harris
Copy link
Member

This is an alternative to #3122. Rather than adding hoisted values to the context, it prevents them from being shadowed in the function that generates the slot context.

While I was in there, I optimised a few other things: it's more conservative about updating slots generally, and DRYs out the logic for determining if a variable is 'dynamic'.

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.

2 participants