material-table icon indicating copy to clipboard operation
material-table copied to clipboard

React Function Component - Editable option crash code

Open mbv401920150 opened this issue 7 years ago • 2 comments

Describe the bug Problem with Material Table when try to make it editable using a React Functional Component. After the execution of any editable action the data in the grid not refresh.

To Reproduce Steps to reproduce the behavior:

  1. Use this code as example: https://codesandbox.io/s/materialtableui-b35v3
  2. Make any update (Delete, Add or Update any row)
  3. After save/commit the changes the information is not refreshed on the grid.

Expected behavior Allow editable actions and show the data in the grid after each action.

Desktop (please complete the following information):

  • Browser [Any]

Additional context The scenario happens using a React Functional Component.

mbv401920150 avatar Nov 13 '19 02:11 mbv401920150

I made a workaround... but I still have some doubts if this is the best approach to fix the problem... check this link:

https://github.com/mbrn/material-table/issues/1325#issuecomment-553388257

Regards!

mbv401920150 avatar Nov 13 '19 12:11 mbv401920150

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.

stale[bot] avatar Jun 15 '20 10:06 stale[bot]