onSortingChange getting called twice on first render
Linos2508 opened this issue · 3 comments
Linos2508 commented
material-react-table version
v2.12.1
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
When creating a simple table and use the onSortingChange prop the callback is getting fired twice.
Minimal, Reproducible Example - (Optional, but Recommended)
https://codesandbox.io/p/devbox/magical-paper-82vtph?file=%2Fsrc%2FTS.tsx%3A8%2C1
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
- I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.