-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Index variables with nested {{#each}} loops #126
Comments
This is related to #88 – basically, Svelte isn't deconflicting variable names, which it needs to. It's using Demo: https://svelte.technology/repl/?gist=2eff688ccdaed9886f92e92d1145216f |
Ah okay, I guess I just got lucky by using |
Fixed in 1.1.2 |
https://svelte.technology/repl/?gist=a7fd73504362ea13fadcdb507c6e2c9a
Component:
Data:
What I'm getting:
What I would expect to be getting:
It looks like the
{{#each}}
index variablei
is getting overwritten by the inner loop. Am I doing something wrong here or is this a bug / known current limitation?The text was updated successfully, but these errors were encountered: