Skip to content

Not rerendering on data change #431

@dandanthedev

Description

@dandanthedev

Hi! I'm working on a live collab app using react-spreadsheet ,but i'm running into this issue:

2025-07-19.16-30-54.mp4

You can see the data updating at the bottom (i'm just stringifying the data var there). That's the same data that i'm passing into react-spreadsheet. But it only seems to reflect in the UI after interacting with something related to it (the row, the col or the cell itself).

I'm running the spreadsheet like

const [data, updateData] = useState(sheetData?.sheetData);
<Spreadsheet
          data={data as Matrix<CellBase>}
/>

Any ideas why this could be happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions