Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Re-render on state changing #15

Open
andredeloliveira opened this issue Nov 28, 2016 · 4 comments
Open

Re-render on state changing #15

andredeloliveira opened this issue Nov 28, 2016 · 4 comments

Comments

@andredeloliveira
Copy link

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?

@trorbyte
Copy link

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}/>

@darcusfenix
Copy link

@trorbyte How did you do that ? When I add the key value and re-render happen my data doesn't change inside of component.

@trorbyte
Copy link

Does your key change?

tbh I'm no longer using this component - and have reverted to a plain table.

@nevermind89x
Copy link

Adding a key that changes worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants