You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hooks/use-fetcher.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,9 +110,9 @@ fetcher.submit(
110
110
111
111
### `fetcher.load(href, options)`
112
112
113
-
Loads data from a route loader. While multiple nested routes can match a URL, only the leaf route will be called.
113
+
Loads data from a route loader. While multiple nested routes can match a URL, only the leaf route will be called.
114
114
115
-
Note that when calling `load` on an index route's loader, you must include an [`?index` query param](../guides/index-query-param) in order to disambiguate between the `index.tsx` layout and the `root.tsx` route.
115
+
Note that when calling `load` on an index route's loader, you must include an [`?index` query param][index-query-param] in order to disambiguate between the `index.tsx` layout and the `root.tsx` route.
116
116
117
117
```ts
118
118
fetcher.load("/some/route");
@@ -182,3 +182,4 @@ The form method of the submission.
Sets a session value that will be unset the first time it is read in a subsequent request. After that, it's gone. Most useful for "flash messages" and server-side form validation messages:
0 commit comments