kit
kit copied to clipboard
$navigating store not updated when form submitted
Describe the bug
When submitting a form I would expect the $navigating store to be updated whilst the action is running.
The docs at https://kit.svelte.dev/docs/types#public-types-navigation say that $navigating.type can have the value form when a user has submitted a form.
But this never seems to be the case and $navigating remains as null whilst the action is running.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-kcmju7?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
System:
OS: macOS 13.4
CPU: (10) arm64 Apple M1 Pro
Memory: 602.34 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
Yarn: 3.3.0 - ~/.volta/tools/image/yarn/3.3.0/bin/yarn
npm: 9.5.1 - ~/.volta/tools/image/npm/9.5.1/bin/npm
Browsers:
Chrome: 114.0.5735.133
Firefox: 114.0.1
Safari: 16.5
npmPackages:
@sveltejs/adapter-vercel: ^3.0.0 => 3.0.1
@sveltejs/kit: ^1.0.0 => 1.20.5
svelte: ^3.44.0 => 4.0.0
vite: ^4.0.0 => 4.3.9
Severity
serious, but I can work around it
Additional Information
No response