gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

2 tables on the same page causes React non-unique id warning #1519

Open lounsbrough opened 4 years ago

lounsbrough commented 4 years ago

Expected Behavior

When rendering multiple tables on the same page, I expect them to render without warnings.

Current Behavior

React throw a warning in the console: Found 2 elements with non-unique id #pagination-next

image

Steps to Reproduce (for bugs)

Just render two tables on the same page.

Sandbox with code to reproduce (codesandbox doesn't show the error, have to run locally) https://codesandbox.io/s/upbeat-mclaren-che94

Your Environment

Tech Version
@material-ui/core 4.11.0
@material-ui/icons 4.9.1
MUI-datatables 3.4.1
React 16.13.1
browser Chrome
NextJS 9.5.3
drnguyenn commented 3 years ago

Is there any update yet ?