Closed williamneves closed 11 months ago
Looks like you are just running into this:
https://www.mantine-react-table.com/docs/getting-started/usage
Defining your data like that within the component causes an infinite loop, because every time the reference to the data changes, it causes a re-render, which causes the data to be redefined. Give your data
a stable reference by either defining it outside of the component, or in either a useState
or useMemo
hook.
mantine-react-table version
v1.0.0
react & react-dom versions
v18.2.0
Describe the bug and the steps to reproduce it
Hello, I had a very strange bug happening on my table. Stack: Nextjs13 pages router, Mantine, and MRT v1.0.0
The problem is the page "broken" when I press to open the detailPanel. Nothing shows at console on the browser, the browser freezes, and I can check nothing on console or network.
I will share the code and video.
On video you guys can see nothing happens when press the button, I tried to open the console but the tab is frozen, I need to open another tab (the logs are from loom so, on really not is showing on the console.log.
The strange, is I hace another tables working fine! Today, when I create this new one, this feature not open, not work any more, the old one still works, but a new one (I create tons of new ones, different pages, and nothing)
I already tried remove and add the package, remove all node_modules and install again, but nothing fixed.
Please help!
video: https://www.loom.com/share/13ae063d7bfd450487e3a823cab0c449
Code:
Minimal, Reproducible Example - (Optional, but Recommended)
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms