Reaching into nested properties and keeping them reactive?
Coming from React I really like that I can destruct nested props into single variables, in this example I have a JSON (using
createResource with flow as the signal) that has a couple of levels where I parse it and loop it over with a <For>
<For each={flow().ui.nodes}>{nodeValue}</For>
The nodeValue function looks like this (I could of course inline it all, and I might, but for now it's its own function)
Can I avoid having to do node.attributes.x and rather get node.attributes as a flat var and use var.name instead?2 Replies