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

fix(ssr): fix rendering scoped variables in iterators #4990

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

nolanlawson
Copy link
Collaborator

@nolanlawson nolanlawson commented Dec 2, 2024

Details

Fixes an issue with rendering iterator-related variables like item/index/it.value/etc. Adds some tests to assert that we are rendering these correctly.

The bug was basically that we only supported member syntax like item.foo and not a bare identifier like just item.

I also organized the fixtures into two top-level directories: for-each-block and iterator-block.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner December 2, 2024 23:28
@nolanlawson
Copy link
Collaborator Author

I also added some code to handle complex template expressions, since we need it to compile the benchmarks properly.

@nolanlawson nolanlawson merged commit e937815 into master Dec 3, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/fix-iterators branch December 3, 2024 20:00
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