We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Playground link
<For each={((s, e) => { let step = e > s ? 1 : -1; return Array.from( { length: Math.abs(e - s) }, (_, i) => s + i * step, ); })(0, params.boxes)} />
(this code may look a bit weird, but it's generated from the simple Civet code <For each=[0...params.boxes]>)
<For each=[0...params.boxes]>
import { createComponent as _$createComponent } from "solid-js/web"; import { For as _$For } from "solid-js/web"; _$createComponent(_$For, { get each() { let step = e > s ? 1 : -1; return Array.from({ length: Math.abs(e - s) }, (_, i) => s + i * step); } });
The bindings for s and e (by the IIFE) got lost. ☹️
s
e
This bug seems to go back to at least Solid 1.8.5.
Wrap attribute in another IIFE: () => ...
() => ...
The text was updated successfully, but these errors were encountered:
Yeah that ones a bit odd.. I wouldn't expect the iife to get swallowed since we usually check for argument length, and that clearly has arguments.
Sorry, something went wrong.
This seems to be fixed by #327. So maybe just needs a release.
That was released like 7 versions ago. 0.37.22... we are on 0.38.5. The release should have gone out June 25th. Can you confirm if you have it?
No branches or pull requests
Playground link
Input
(this code may look a bit weird, but it's generated from the simple Civet code
<For each=[0...params.boxes]>
)Output
The bindings for☹️
s
ande
(by the IIFE) got lost.This bug seems to go back to at least Solid 1.8.5.
Workaround
Wrap attribute in another IIFE:
() => ...
The text was updated successfully, but these errors were encountered: