Handling rerenders when overwriting state
I have a signal that is storing a 2d array for my 'game state'. What would be the best way to render this data without causing the components to rerender on each update.
Ex.
I'm rendering each
Ex.
I'm rendering each
column of the board then the tokens for each columns using the <For> flow. The issue is that when I update the state, I copy the board and update the next null index and return the copy. This causes the whole board to re-render.