You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a cell is changed, and then a different cell is selected (not from pressing enter, but from mouseDown on a different cell), the changed cell re-renders before onCellsChanged is called, so the underlying data is changed, but the visible cell renders the old value. The new value is only reflected to the user when the cell is selected again.
Similarly, if changing one cell makes changes to other cells that aren't currently selected, the underlying data structures are changed, but the values aren't reflected in the secondary cells until they are selected (which makes the values re-render).
The text was updated successfully, but these errors were encountered:
You can work around this by creating an additional state variable and setting it when you need the whole sheet to re-render, but this causes all cells to re-render, not just the changed cells, which isn't optimal. Also I'm not entirely sure why it works, as it only works for me when the variable is an array of the changed cells indices, and not when it's something like a simple boolean, even though my code never reads from that list of indices.
If a cell is changed, and then a different cell is selected (not from pressing enter, but from mouseDown on a different cell), the changed cell re-renders before onCellsChanged is called, so the underlying data is changed, but the visible cell renders the old value. The new value is only reflected to the user when the cell is selected again.
Similarly, if changing one cell makes changes to other cells that aren't currently selected, the underlying data structures are changed, but the values aren't reflected in the secondary cells until they are selected (which makes the values re-render).
The text was updated successfully, but these errors were encountered: