Open GitRowin opened 2 days ago
Latest commit: d23e70b6a9755064205eaa38d2529de9dca2c1e8
The changes in this PR will be included in the next version bump.
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
preview: https://svelte-dev-git-preview-kit-13032-svelte.vercel.app/
this is an automated message
I think this makes sense. The question is what exactly happens if the redirect happens and then the code from the previos page runs. This could possibly also cause problems because it tries to change elements that are no longer there.
Here is a simple form with a button that gets disabled while the form is being submitted:
If the server responds with a redirect, I expect the button to stay on "Sending..." until the other page shows up. Unfortunately, this is not what happens right now: .
And here is what it looks like after these changes: .
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits