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 if the scope already has a LetContext before adding one #707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nlundquist
Copy link
Contributor

@nlundquist nlundquist commented Jul 4, 2019

Pushed this after discussion with Justin, but upon reflection, I don't think we can make this change. Whenever a template is rendered a new LetContext probably should be added.

The only case where we might be able to avoid this is when the "leaf" context is already a LetContext, but even then, we can't be sure that we shouldn't be adding another one. I think it's probably preferable to have an extra LetContext than not adding one when we should be.

Putting this PR up for further discussion.

@nlundquist nlundquist changed the title change to check if the scope already has a let scope before adding one check if the scope already has a LetContext before adding one Jul 4, 2019
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.

None yet

1 participant