table icon indicating copy to clipboard operation
table copied to clipboard

Table renders multiple times if data changes while plugins are used

Open czymstef opened this issue 5 years ago • 2 comments

When using plugins, the table is rendered multiple times if the data changes. More plugins = more renders.

I forked the basic example and added some plugins, a button which triggers a data change and a simple console.log to log table renders: https://codesandbox.io/s/affectionate-agnesi-7ydi9?file=/src/App.js

Steps to reproduce the behavior:

  1. open the codesandbox, you should see a single "render table" in the console
  2. clear the console
  3. click the change data button, you should see "render table" thrice
  4. if you remove some or all plugins, the number of render reduces all the way to a single render if no plugin is used

Expected behavior: The table should only be rendered once when the data changes.

czymstef avatar Mar 07 '21 14:03 czymstef

This issue is being marked as stale (no activity in the last 14 days)

github-actions[bot] avatar Apr 08 '22 17:04 github-actions[bot]

This issue has been detected as stale and automatically closed. It's very likely that your issue has remained here this long because it would require breaking changes to v7. React Table v8 is currently in alpha (soon beta!) and already contains bug fixes, performance improvements and architectural changes that likely address this issue.

  • If your v7 issue has been previously labeled as requiring breaking changes, please try the new v8 alpha/beta releases
  • If your v7 issue has not already been labeled as a breaking change, open a new issue.
  • If this was a v8 issue and was closed by mistake, please reopen or leave a comment below.

github-actions[bot] avatar Apr 08 '22 17:04 github-actions[bot]