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

CRUD Editing Inline Cell Demo doesn't seem to work ?

Open btranggg opened this issue 1 year ago • 1 comments

material-react-table version

^3.0.1

react & react-dom versions

^18.3.1

Describe the bug and the steps to reproduce it

Trying out the CRUD inline cell editing from the documentation but I can't seem to get the newly submitted edited cell values so I cannot submit it to my API.

Minimal, Reproducible Example - (Optional, but Recommended)

mutationFn doesn't have the new values so I can't access the new values in the useUpdateUsers hook.

https://codesandbox.io/p/devbox/friendly-alex-v2c2yn

Screenshots or Videos (Optional)

image

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • [X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

btranggg avatar Sep 10 '24 18:09 btranggg

probably use row._valuesCache instead of row.original. Don't remember why the example uses row.original.

KevinVandy avatar Sep 10 '24 18:09 KevinVandy