Multiple api calls on column filter change in manual mode while using UseEffect hook
jemish-virani opened this issue · 1 comments
jemish-virani commented
material-react-table version
v2.13.0
react & react-dom versions
v18.3.1
Describe the bug and the steps to reproduce it
Does anybody knows a solution or faced a issue of api getting called multiple times while column filter is changed. This is causing Table fetching state to render twice and show a loader twice. I am using a manual mode with UseEffect hook.
Please check a below video which demonstrate a issue itself from the code examples.
Minimal, Reproducible Example - (Optional, but Recommended)
https://www.material-react-table.com/docs/examples/remote
Screenshots or Videos (Optional)
22.07.2024_17.30.29_REC.mp4
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.
KevinVandy commented
Probably just a symptom of react strict mode. Else, any debouncing logic could fix