-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
Description
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 🕹
- Refer to this sample
- Open the app in new window
- Open React Dev Tools and click on the 'Update the first cell button.'
- You will see that all table cells are highlighted.
- 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 |