Skip to content

TableView rows don't re-render if values change other than the key #2092

@rabidpug

Description

@rabidpug

🐛 Bug Report

TableView rows don't re-render when values change if the key does not change.

🤔 Expected Behavior

Rows should re-render if their values change

😯 Current Behavior

Rows don't re-render if their values change

💁 Possible Solution

Should be able to opt out of memoization.

🔦 Context

I have a table where the user selects rows (which by design are identified by their Key, so I have to use the row ID), then clicks a button to approve/reject rows. The rows don't re-render with the changed values.

💻 Code Sample

CodeSandBox demonstrating

🌍 Your Environment

Software Version(s)
react-spectrum 3.11.2 / 3.0.0-beta.1 (for table)
Browser Chrome 90
Operating System Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions