Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The register form's email warnings (education / typo / disposable) stopped showing after #7816 (
1cefe7cf4) rewired the verify-email cross-check from a manualvalidateFieldcall toonChangeListenTo: ["email"].form-core runs linked fields' sync validators inside the field's own
validateSync; the verify field'sverify email not matching emailerror (verify still empty while typing) setshasErroredon the email field, andFieldApi.validatethen aborts the email's async validation (hasErrored && !asyncAlways).emailIsValidnever runs,hasWarningis never set, and the indicator shows the success check.// Register.tsx — email field <form.Field name="email" + asyncAlways validators={{ onChange: fromSchema(UserEmailSchema), onChangeAsync: (field) => handleResult(field.fieldApi, await emailIsValid(field.value)), }}asyncAlwaysis form-core's option for exactly this: keep async validation running while the sync pass has errored.Other forms checked:
onChangeListenToonly exists in this form (emailVerify, passwordVerify). Email is the only field that combines async validation with a linked field that can error (passwordVerify's linked password field has no async validator; the remote-availability usernames in Register / ThirdPartySignUpModal / ProfileSearchPage have no linked fields). Unrelated to the@tanstack/solid-formversion — the bug exists on 1.29.1 (the version at the time of #7816) through 1.33.6.Evidence
test@example.eduleaves the indicator onfa-check; field store never showsisValidating: trueorhasWarning(async validator aborted). New regression test fails:expected "vi.fn()" to be called at least once(handleResult, the async warning handler, is never invoked).After: test passes —
handleResultcalled with the education warning andhasWarning: trueon the field.plain@example.com→fa-checktest@example.edu→fa-exclamation-triangle+ tooltipSome education emails will fail to receive our messages, or disable the account as soon as you graduate…pnpm vitest run: 135 files, 2027 tests, all pass.oxlint(core + type-aware) clean.Merge Danger
Door: two-way
Blast Radius: register form's email field only. Async email validation (pure regex/module checks, no network) now also runs on keystrokes with a sync error, e.g. while the email is invalid — worst case it sets a warning that the error indicator takes precedence over.