Skip to content
New issue

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

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

Conversation

fulopkovacs
Copy link
Contributor

Fixes #629

Copy link

nx-cloud bot commented May 26, 2024

☁️ 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
Comment on lines +189 to +191
;[form, field, subField1, subField2, subField3, subField4].forEach((f) =>
f.mount(),
)
Copy link
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
2 checks passed
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