We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayInput
keepDirtyValues
true
What you were expecting:
When the following conditions are met:
updated_at
<Edit>
redirect={false}
mutationMode="optimistic"
<Form>
resetOptions={{ keepDirtyValues: true }}
I should be able to remove items from an <ArrayInput>.
<ArrayInput>
What happened instead:
Instead, the removed item keeps reappearing after I click Save.
Steps to reproduce:
Related code:
https://stackblitz.com/edit/github-ds11wg7c?file=src%2Fposts%2FPostEdit.tsx
Other information:
I also tried to reproduce this issue in a react-hook-form only sandbox, but it does not seem to have the issue. https://codesandbox.io/p/sandbox/sweet-rhodes-nn7nl8?workspaceId=ws_GvfcTzCi2aJ7bCaQr5bmfV
Environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What you were expecting:
When the following conditions are met:
updated_at
field)<Edit>
hasredirect={false}
<Edit>
hasmutationMode="optimistic"
<Form>
hasresetOptions={{ keepDirtyValues: true }}
I should be able to remove items from an
<ArrayInput>
.What happened instead:
Instead, the removed item keeps reappearing after I click Save.
Screencast.2024-12-18.14.55.42.mp4
Steps to reproduce:
Related code:
https://stackblitz.com/edit/github-ds11wg7c?file=src%2Fposts%2FPostEdit.tsx
Other information:
I also tried to reproduce this issue in a react-hook-form only sandbox, but it does not seem to have the issue.
https://codesandbox.io/p/sandbox/sweet-rhodes-nn7nl8?workspaceId=ws_GvfcTzCi2aJ7bCaQr5bmfV
Environment
The text was updated successfully, but these errors were encountered: