Describe the bug
The docs state that form() result values are ephemeral and "will vanish if you navigate away", but they actually persist when returning to the page.
Reproduction
https://stackblitz.com/edit/sveltekit-form-ephemeral-state-bug
Logs
System Info
System:
OS: macOS 15.5
CPU: (8) arm64 Apple M2
Memory: 80.34 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node
npm: 9.6.4 - /opt/homebrew/bin/npm
pnpm: 10.18.3 - /opt/homebrew/bin/pnpm
bun: 1.3.0 - ~/.bun/bin/bun
Browsers:
Chrome: 141.0.7390.108
Safari: 18.5
npmPackages:
@sveltejs/adapter-auto: ^6.1.0 => 6.1.1
@sveltejs/kit: ^2.43.2 => 2.47.3
@sveltejs/vite-plugin-svelte: ^6.2.0 => 6.2.1
svelte: ^5.39.5 => 5.41.4
vite: ^7.1.7 => 7.1.12
Severity
annoyance
Additional Information
No response
Describe the bug
The docs state that
form()result values are ephemeral and "will vanish if you navigate away", but they actually persist when returning to the page.Reproduction
https://stackblitz.com/edit/sveltekit-form-ephemeral-state-bug
Logs
System Info
System: OS: macOS 15.5 CPU: (8) arm64 Apple M2 Memory: 80.34 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node npm: 9.6.4 - /opt/homebrew/bin/npm pnpm: 10.18.3 - /opt/homebrew/bin/pnpm bun: 1.3.0 - ~/.bun/bin/bun Browsers: Chrome: 141.0.7390.108 Safari: 18.5 npmPackages: @sveltejs/adapter-auto: ^6.1.0 => 6.1.1 @sveltejs/kit: ^2.43.2 => 2.47.3 @sveltejs/vite-plugin-svelte: ^6.2.0 => 6.2.1 svelte: ^5.39.5 => 5.41.4 vite: ^7.1.7 => 7.1.12Severity
annoyance
Additional Information
No response