Feat:: Use useWatch to synchronize the form data to canvas zustand #3221 (#7926)

### What problem does this PR solve?

Feat:: Use useWatch to synchronize the form data to canvas zustand #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-29 10:18:52 +08:00
committed by GitHub
parent 0c562f0a9f
commit 81b306aac9
7 changed files with 101 additions and 13 deletions

View File

@ -74,7 +74,7 @@ const FormSheet = ({
);
useEffect(() => {
if (visible && !form.formState.isDirty) {
if (visible) {
if (node?.id !== previousId.current) {
form.reset();
form.clearErrors();