As mentioned in leptos Issue 3509, the let attribute of a <For> component can be destructured with the let(/* pattern */) syntax, however leptosfmt completely removes this.
i.e.
<For
each=move || list.get()
key=|Item { name, .. }| name.clone()
let(Item { name, value }) // this will be stripped
>
is formatted to
<For
each=move || list.get()
key=|Item { name, .. }| name.clone()
let // destructured pattern is stripped
>
As mentioned in
leptos
Issue 3509, thelet
attribute of a<For>
component can be destructured with thelet(/* pattern */)
syntax, howeverleptosfmt
completely removes this. i.e.is formatted to