Skip to content

fix(core): re-validate the subfields after one of them have been removed - #719

Merged
crutchcorn merged 1 commit into
TanStack:mainfrom
fulopkovacs:fix-array-validation-when-a-field-is-removed
May 28, 2024
Merged

fix(core): re-validate the subfields after one of them have been removed#719
crutchcorn merged 1 commit into
TanStack:mainfrom
fulopkovacs:fix-array-validation-when-a-field-is-removed

Conversation

@fulopkovacs

Copy link
Copy Markdown
Member

Fixes #629

@nx-cloud

nx-cloud Bot commented May 26, 2024

Copy link
Copy Markdown

☁️ Nx Cloud Report

CI is running/has finished running commands for commit df0b7d6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@fulopkovacs
fulopkovacs force-pushed the fix-array-validation-when-a-field-is-removed branch from 0815891 to df0b7d6 Compare May 26, 2024 18:16
@fulopkovacs
fulopkovacs requested a review from crutchcorn May 26, 2024 18:26
Comment on lines +189 to +191
;[form, field, subField1, subField2, subField3, subField4].forEach((f) =>
f.mount(),
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking, but in the future let's avoid using forEach. It's more things to type out, but I really dislike programmatic logic in our tests as it makes things harder to debug.

@crutchcorn
crutchcorn merged commit cc0995e into TanStack:main May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Field Array Validation Not Refreshing Properly When Field is Removed

2 participants