Replies: 3 comments
-
You're trying to set a non-registered onClick={() =>
setValue(
- `organizations[${index}].address`,
+ `organizations.${index}.address`,
- null,
+ { street: "", city: "" },
{
shouldDirty: true,
}
)
} |
Beta Was this translation helpful? Give feedback.
-
How should I refactor my approach to be able to set Moreover, is it a desirable that my code works without the |
Beta Was this translation helpful? Give feedback.
-
Any follow-up on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.49.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/billowing-field-4rkhs9?file=%2Fsrc%2FApp.tsx%3A57%2C26
Steps to reproduce
shouldDirty: true
and refresh codesandbox.Expected behaviour
No error thrown and formState.isDirty = true
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions