You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the {{#each}} index variable i 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:
This is related to #88 – basically, Svelte isn't deconflicting variable names, which it needs to. It's using i internally to iterate. If you use e.g. j and k instead of i and j it should work around the issue pending a proper fix.
Ah okay, I guess I just got lucky by using i when I was fiddling with this :) It does work when I use different variable names. Thanks for the super quick response!
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: