gregnb / gregnb/mui-datatables

How re-render works?

Open
#671 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

Hey! This is more of a question rather than a bug/suggestion.

If I change a single item of the entire table, and then run a `setTableData(data)`, will it re-render the entire table or just the parts that have actually changed?

Is there some kind of key property or key verification during the render process? Or should I specify something like a keyExtractor manually?

For some context: I am developing an application that uses websocket and setting the table to re-render every time data arrives from the server.

Thank you so much for this amazing library!

| Tech | Version |
|--------------|------------|
| Material-UI |4.0.1|
| MUI-datatables |2.3.0|
| React |16.8.6|
| Chrome |74|

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.