ReactTable/MobX: data update not reflected in table
See original GitHub issueWhat version of React-Table are you using?
6.8.0
What bug are you experiencing, or what feature are you proposing?
Table is not updating custom cell contents when data changes. I’m not sure if this is an issue with ReactTable or my code. Please help
Use https://codesandbox.io/s/X6npLXPRW (by clicking the “Fork” button) to reproduce the issue.
https://codesandbox.io/s/jp882l3m2w
What are the steps to reproduce the issue?
- Edit text areas in the table Price column.
- You’ll see in the console that the
onChange()
handler is being triggered and the store items are updated. - Table cells are not updated
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ReactTable/MobX: data update not reflected in table #839
This is a very basic MobX example with ReactTable. It does not have an editable field in it but the buttons at the...
Read more >React-table doesn't update when MobX store updates
I am using react-table, which depends on some MobX observable data. My component is wrapped with observer() and my table row data is ......
Read more >React table is not updating after new row added-Reactjs
Coding example for the question React table is not updating after new row ... .then(res => { setMailList(res.data) console.log(res.data) }) .catch(err ...
Read more >react table 7 example
Have you ever experienced react-table not updating the data when there was a ... An example showing how to implement Pagination in React...
Read more >Ten minute introduction to MobX and React
MobX. Ten minute introduction to MobX and React. MobX is a simple, scalable and battle tested state management solution. This tutorial will teach...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a very basic MobX example with ReactTable. It does not have an editable field in it but the buttons at the Add a record and Update with a random string.
Maybe that will help. I don’t have anything more complex as I don’t use MobX.
https://codesandbox.io/s/kkmxl8moq5
it doesn’t work for expand mode, use subrows field