Skip to content

Commit 7825c53

Browse files
Fix broken links to API docs (#13806)
1 parent ae453c2 commit 7825c53

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/api/components/Await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ via [useRouteError](../hooks/useRouteError) hook.
117117

118118
[modes: framework, data]
119119

120-
Takes a promise returned from a [LoaderFunction](../Other/LoaderFunction) value to be resolved and rendered.
120+
Takes a promise returned from a [LoaderFunction](https://api.reactrouter.com/v7/types/react_router.LoaderFunction.html) value to be resolved and rendered.
121121

122122
```jsx
123123
import { useLoaderData, Await } from "react-router";

docs/api/components/Link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ This state is inaccessible on the server as it is implemented on top of [`histor
151151

152152
[modes: framework, data, declarative]
153153

154-
Can be a string or a partial [Path](../Other/Path):
154+
Can be a string or a partial [Path](https://api.reactrouter.com/v7/interfaces/react_router.Path.html):
155155

156156
```tsx
157157
<Link to="/some/path" />

docs/api/hooks/useLoaderData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: useLoaderData
1010

1111
[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useLoaderData.html)
1212

13-
Returns the data from the closest route [LoaderFunction](../Other/LoaderFunction) or [ClientLoaderFunction](../Other/ClientLoaderFunction).
13+
Returns the data from the closest route [LoaderFunction](https://api.reactrouter.com/v7/types/react_router.LoaderFunction.html) or [ClientLoaderFunction](https://api.reactrouter.com/v7/types/react_router.ClientLoaderFunction.html).
1414

1515
```tsx
1616
import { useLoaderData } from "react-router";

docs/api/hooks/useNavigate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function SomeComponent() {
2727
}
2828
```
2929

30-
It's often better to use [redirect](../utils/redirect) in [ActionFunction](../Other/ActionFunction) and [LoaderFunction](../Other/LoaderFunction) than this hook.
30+
It's often better to use [redirect](../utils/redirect) in [ActionFunction](https://api.reactrouter.com/v7/interfaces/react_router.ActionFunction.html) and [LoaderFunction](https://api.reactrouter.com/v7/types/react_router.LoaderFunction.html) than this hook.
3131

3232
## Signature
3333

docs/api/hooks/useResolvedPath.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: useResolvedPath
1010

1111
[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useResolvedPath.html)
1212

13-
Resolves the pathname of the given `to` value against the current location. Similar to [useHref](../hooks/useHref), but returns a [Path](../Other/Path) instead of a string.
13+
Resolves the pathname of the given `to` value against the current location. Similar to [useHref](../hooks/useHref), but returns a [Path](https://api.reactrouter.com/v7/interfaces/react_router.Path) instead of a string.
1414

1515
```tsx
1616
import { useResolvedPath } from "react-router";

docs/api/hooks/useRouteError.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: useRouteError
1010

1111
[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useRouteError.html)
1212

13-
Accesses the error thrown during an [ActionFunction](../Other/ActionFunction), [LoaderFunction](../Other/LoaderFunction), or component render to be used in a route module Error Boundary.
13+
Accesses the error thrown during an [ActionFunction](https://api.reactrouter.com/v7/interfaces/react_router.ActionFunction.html), [LoaderFunction](https://api.reactrouter.com/v7/types/react_router.LoaderFunction.html), or component render to be used in a route module Error Boundary.
1414

1515
```tsx
1616
export function ErrorBoundary() {

0 commit comments

Comments
 (0)