SolidJSS
SolidJS2y ago
26 replies
QWu4xYV

Reactivity in single cell in nested For tags

I have a large-ish (~20x20) table with cells that update very regularly. When only a single cell value changes, I would like to update only that cell, not all the cells in the row. I'm currently implementing this with nested For loops, but it seems like the inner loop always re-renders (which makes sense because the For children function gets called). Simplified example here: https://stackblitz.com/edit/solidjs-templates-jebc3v?file=src%2FApp.tsx

I'm assuming there's a straightforward way to do this, but I can't see anything in the support section, docs, or github issues. Thanks for any help!
StackBlitzQWu4xYV
Vite + solid templates
Nested For - StackBlitz
Was this page helpful?