Edit does not update table
Describe the bug Edit does not actually show changes in the table. It doesn't even work on the example page: https://material-table.com/#/docs/features/editable
Attempt to edit a field and hit the check button and the table just reverts to original state. The behavior is the same in my example app despite the state changing.
To Reproduce Steps to reproduce the behavior:
- Go to https://material-table.com/#/docs/features/editable
- Edit one of the fields
- Hit check box
- Observe table does not update.
Expected behavior Table should update based on new data.
Is anyone else seeing this?
https://github.com/mbrn/material-table/issues/1417
Describe the bug Edit does not actually show changes in the table. It doesn't even work on the example page: https://material-table.com/#/docs/features/editable
Attempt to edit a field and hit the check button and the table just reverts to original state. The behavior is the same in my example app despite the state changing.
To Reproduce Steps to reproduce the behavior:
- Go to https://material-table.com/#/docs/features/editable
- Edit one of the fields
- Hit check box
- Observe table does not update.
Expected behavior Table should update based on new data.
Is anyone else seeing this?
yeah, it doesn't work. Array.from(data) didn't work as well for me.
Describe the bug Edit does not actually show changes in the table. It doesn't even work on the example page: https://material-table.com/#/docs/features/editable
Attempt to edit a field and hit the check button and the table just reverts to original state. The behavior is the same in my example app despite the state changing.
To Reproduce Steps to reproduce the behavior:
- Go to https://material-table.com/#/docs/features/editable
- Edit one of the fields
- Hit check box
- Observe table does not update.
Expected behavior Table should update based on new data.
Is anyone else seeing this?
It works with functional components with hook but it is not working with class based component.
Describe the bug Edit does not actually show changes in the table. It doesn't even work on the example page: https://material-table.com/#/docs/features/editable Attempt to edit a field and hit the check button and the table just reverts to original state. The behavior is the same in my example app despite the state changing. To Reproduce Steps to reproduce the behavior:
- Go to https://material-table.com/#/docs/features/editable
- Edit one of the fields
- Hit check box
- Observe table does not update.
Expected behavior Table should update based on new data. Is anyone else seeing this?
It works with functional components with hook but it is not working with class based component.
- i can confirm this.
@gabbottron, hope this will be hopeful.
I set my data like:
data={Array.from(tableData)}and onRowUpdateonRowUpdate: (newData, oldData) => new Promise(resolve => { setTimeout(() => { resolve(); const { sampleID, ...rest } = newData; const data = Array.from(tableData); data[data.indexOf(oldData)] = newData; setTableData(() => data); resolve(); }, 700); }),
https://github.com/mbrn/material-table/issues/1413#issuecomment-572858590
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.