Comments (3)
I hope example above solved the problem.
from react-material-ui-datatable.
Hi!
This component is fully uncontrolled, so it don't apply new props, if it was rendered.
You can use pattern fully uncontrolled with a key as React team recommended. A key
will be as a version of your users
data, if array was changed, then key
need to increment and will render new table component. You can use onStateChanged
to save current state (i.e. page, perPage and etc.), to apply this state, when key
will increment
Example I will give you later
from react-material-ui-datatable.
Here is an example
https://codesandbox.io/embed/react-material-ui-datatable-p7ktr
Take a look in Demo.js
module the Page
component. Here I've quickly implemented pattern with key
, to update uncontrolled component.
Try to change page, perPage in the table, and then click on button "CHANGE USERS ONCE". It will apply new users
array, but state of the table wouldn't change.
from react-material-ui-datatable.
Related Issues (17)
- Better UX
- [Feature] Add state managing for data update after selection HOT 1
- [Docs] Update documentation with new features
- [Feature] Deletable rows
- [Feature] Add I18n
- [Feature] Add more options for datatable
- Use cases for your datatables
- Select "all" or "allDisplay"
- No data found for empty result of search HOT 2
- Performance optimisation
- Separate component model for stateless and stateful modes HOT 1
- Setup for column HOT 1
- Column name with dot notation
- Add state managing for selected rows
- Add tests for model
- [Feature] Add case sensitivity for search string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-material-ui-datatable.