issue: While performing remove and append array is not maintaining the correct state (working with MUI datagrid pro) #10171
Replies: 5 comments 1 reply
-
My observations: |
Beta Was this translation helpful? Give feedback.
-
Please provide a stable codesandbox url to re-produce the issue. The provided one in this discussion is not usable anymore. |
Beta Was this translation helpful? Give feedback.
-
@leapful |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late response. The problem is because you are using You need to get and cloned current value of Working demo: https://codesandbox.io/s/strange-surf-cd13lp?file=/demo.tsx |
Beta Was this translation helpful? Give feedback.
-
Hi @leapful In the example you provided, I found that formState.isDirty doesn’t work properly. Do you have any good suggestions? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.43.7
Codesandbox/Expo snack
https://codesandbox.io/s/brave-elgamal-zpkh2c?file=/demo.tsx
Steps to reproduce
Output: We can see that 4 rows in the data grid
Expected behaviour
When we add a new row we should get only 3 rows i.e 2 old rows and 1 new row with empty data
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions