mui-data-table
mui-data-table copied to clipboard
Re-render on state changing
Hello,
I'm using redux to control all my state changing. All the other components are being re-rendered but the same doesn't happen in the mui-data-table.
Is there any support for re-rendering?
Had same issue - tried various ; in the end I set a key on the MuiDataTable element and that cause it to pickup the changes. Requires the key value to change evidently based on whatever triggers your config changes
<MuiDataTable key={somevalue} config={myConfig}/>
@trorbyte How did you do that ? When I add the key value and re-render happen my data doesn't change inside of component.
Does your key change?
tbh I'm no longer using this component - and have reverted to a plain table.
Adding a key that changes worked for me.