Skip to content

fix: preserve remote form issues on validation redirects - #17397

Draft
svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17396-validation-redirect
Draft

svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17396-validation-redirect

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Validation redirects omit the primary payload; assigning it unconditionally corrupted the issues array and broke filtering or reactive reads.
  • #15991 consolidated remote data for deduplication but removed validation's guarded assignment. Default missing validation payloads to an empty array, restoring its previous non-navigating behavior rather than adding navigation on input or blur.
  • Normalize at the validation boundary instead of weakening flatten_issues or defaulting arbitrary remote-function payloads. Preserve stale-result guards, preflight issue merging (#14744) and submission navigation (#16765).
  • Cover hook and schema redirects before/after submission, subsequent validation, keyed-instance isolation and preflight-only merging.

Fixes #17396

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 9, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 67f06e2:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/67f06e233ba532daf7cfe7d3cf31fe4867491391

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17397

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 67f06e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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.

Remote form validate() stores undefined issues when the server answers with a redirect

0 participants