How to get a callback when table has finished loading? #482
Replies: 2 comments 12 replies
-
This is a React and not a sole Mt problem because it's the plain Rendering not any logic that blocks. React itself has no way that I am aware of to notify that a render went through. One way would be use timeouts to trigger it maybe or a use effect. If you have a sandbox way to achieve something with plain diva, e.g. swap from 100 divs to 1000000 and get a notification, o would check it out and see if we can apply something like this. |
Beta Was this translation helpful? Give feedback.
-
There is an issue with setting I have tried a modification of Modified code used via (This is already what That still doesn't work, and I don't understand why. Here's an example of browser-recorded performance data using the modified code:
|
Beta Was this translation helpful? Give feedback.
-
We are using
@material-table/core
and when we change the page size to hundreds of entries, the table takes a long time (10s of seconds) to load due to the complex contents we put inside of it. This is acceptable to wait for, but we are trying to setisLoading
during this process so that the user is clearly notified of what is happening rather than the page freezing.We are trying to do something similar to:
This works to set the loading when the user changes the page size, but I couldn't find any props to get a handle for a callback that could set
isLoading
back tofalse
once theMaterialTable
completed it's loading.How would one go about this? Would this require
MaterialTable
adding a new prop?Beta Was this translation helpful? Give feedback.
All reactions