material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Free Action trigger the native OverlayLoading component

Open LuisPinaSoares opened this issue 6 years ago • 3 comments

Hi,

I have a free action that collects a few modifications done on table and then bundle saves them. This free action returns a Promise.all of creates, updates and deletes... I would like to trigger the native loader while Promise hasn't been resolved, like it's done in a typical row save (addRow or other). What would be the best way to achieve this.

Thanks in advance!

LuisPinaSoares avatar Feb 26 '20 12:02 LuisPinaSoares

Hello, I don't know if it is the best approach but you may use the isLoading prop to solve your problem, here is an example: https://codesandbox.io/s/lucid-sun-k1ngq

Androsv96 avatar Feb 26 '20 20:02 Androsv96

Nice, that will suffice. Thanks!

LuisPinaSoares avatar Feb 27 '20 08:02 LuisPinaSoares

Hello, I don't know if it is the best approach but you may use the isLoading prop to solve your problem, here is an example: https://codesandbox.io/s/lucid-sun-k1ngq

There's no example code in this link anymore

LuminousIT avatar Jul 24 '20 10:07 LuminousIT