Skip to content

Can't update single table cell only #13952

@SergeyAlexeev

Description

@SergeyAlexeev

I have a table and want to update only the first cell. When I inspect my page using React Developer Tools, I see that all table cells are updated.

  • [x ] This is not a v0.x issue.
  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Only the first cell should be rerendered.

Current Behavior 😯

All table cells are rerendered.

Steps to Reproduce 🕹

  1. Refer to this sample
  2. Open the app in new window
  3. Open React Dev Tools and click on the 'Update the first cell button.'
  4. You will see that all table cells are highlighted.
  5. Also you can see how the 'plain html' sample works.

BTW, I suppose, I can be fixed by using the React.PureComponent for the TableCell component.

Context 🔦

Your Environment 🌎

Tech Version
Material-UI v3.7.0
React v16.5.2
Browser Google Chrome v71.0.3578.98

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions