Skip to content

fix: wait for the redirect navigation before remote form submissions resolve - #16765

Merged
Rich-Harris merged 5 commits into
version-3from
form-redirect-await-goto
Aug 14, 2026
Merged

fix: wait for the redirect navigation before remote form submissions resolve#16765
Rich-Harris merged 5 commits into
version-3from
form-redirect-await-goto

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

closes #16689

submit() now resolves after the redirect navigation, as discussed in the issue. This also keeps pending set until the redirect lands (#15725). External redirects still resolve immediately, since their navigations never settle.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 12, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 8eeb477:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/8eeb4772092e5a59e422c18e8dc6720efe5bf59c

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

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8eeb477

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

@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris

Copy link
Copy Markdown
Member

Should we also be awaiting the refreshAll()?

@Rich-Harris
Rich-Harris merged commit 97ad63a into version-3 Aug 14, 2026
45 of 47 checks passed
@Rich-Harris
Rich-Harris deleted the form-redirect-await-goto branch August 14, 2026 15:41
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 flashes blank inputs before redirect completes

2 participants