Skip to content

Commit f9f60c0

Browse files
authored
docs: specify that the 'form' navigation type only applies to method="GET" (#10269)
Closes #10237 This makes it clear in the docs that $navigating.type is only 'form' when a <form method="GET"> has been submitted, not for POSTs.
1 parent e8d8587 commit f9f60c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tough-weeks-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
docs: update inline NavigationType documentation

packages/kit/src/exports/public.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ export interface NavigationTarget {
821821

822822
/**
823823
* - `enter`: The app has hydrated
824-
* - `form`: The user submitted a `<form>`
824+
* - `form`: The user submitted a `<form>` with a GET method
825825
* - `leave`: The user is leaving the app by closing the tab or using the back/forward buttons to go to a different document
826826
* - `link`: Navigation was triggered by a link click
827827
* - `goto`: Navigation was triggered by a `goto(...)` call or a redirect

0 commit comments

Comments
 (0)