How to show loading of table whenever List filter changes in React Admin

Is there any way to get the loading or fetching state of Data provider in react admin?
So that we can show shimmer or loader on tables till the data fetching is done.

I have tried to get using useContextList() hook inside MyActions component but it don’t trigger. Sometimes it show or not.

 <List
            {...props}
            title="Data"
            exporter={false}
            filter={filter}
            empty={false}
            actions={<MyActions filter={filter} />}
>
    <Datagrid>
     <TextField source="name" label="Name" />
     <TextField source="age" label="Age" />
     <TextField source="gender" label="Gender" />
    </Datagrid>
</List>