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/custom-components/overview.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ export default async function MyServerComponent({
276
276
277
277
But, the Payload Config is [non-serializable](https://react.dev/reference/rsc/use-client#serializable-types) by design. It is full of custom validation functions and more. This means that the Payload Config, in its entirety, cannot be passed directly to Client Components.
278
278
279
-
For this reason, Payload creates a Client Config and passes it into the Config Provider. This is a serializable version of the Payload Config that can be accessed from any Client Component via the [`useConfig`](../admin/hooks#useconfig) hook:
279
+
For this reason, Payload creates a Client Config and passes it into the Config Provider. This is a serializable version of the Payload Config that can be accessed from any Client Component via the [`useConfig`](../admin/react-hooks#useconfig) hook:
280
280
281
281
```tsx
282
282
'use client'
@@ -375,7 +375,7 @@ export function MyClientComponent() {
375
375
```
376
376
377
377
<Banner type="success">
378
-
See the [Hooks](../admin/hooks) documentation for a full list of available hooks.
378
+
See the [Hooks](../admin/react-hooks) documentation for a full list of available hooks.
379
379
</Banner>
380
380
381
381
### Getting the Current Locale
@@ -422,12 +422,12 @@ function Greeting() {
422
422
```
423
423
424
424
<Banner type="success">
425
-
See the [Hooks](../admin/hooks) documentation for a full list of available hooks.
425
+
See the [Hooks](../admin/react-hooks) documentation for a full list of available hooks.
426
426
</Banner>
427
427
428
428
### Using Hooks
429
429
430
-
To make it easier to [build your Custom Components](#building-custom-components), you can use [Payload's built-in React Hooks](../admin/hooks) in any Client Component. For example, you might want to interact with one of Payload'smanyReactContexts. Todothis, youcanuseoneofthemanyhooksavailabledependingonyourneeds.
430
+
To make it easier to [build your Custom Components](#building-custom-components), you can use [Payload's built-in React Hooks](../admin/react-hooks) in any Client Component. For example, you might want to interact with one of Payload'smanyReactContexts. Todothis, youcanuseoneofthemanyhooksavailabledependingonyourneeds.
431
431
432
432
```tsx
433
433
'use client'
@@ -444,7 +444,7 @@ export function MyClientComponent() {
For a complete list of all available React hooks, see the [Payload React Hooks](../admin/hooks) documentation. For additional help, see [Building Custom Components](../custom-components/overview#building-custom-components).
680
+
For a complete list of all available React hooks, see the [Payload React Hooks](../admin/react-hooks) documentation. For additional help, see [Building Custom Components](../custom-components/overview#building-custom-components).
Copy file name to clipboardExpand all lines: docs/hooks/overview.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ There are four main types of Hooks in Payload:
27
27
28
28
<Bannertype="warning">
29
29
**Reminder:**
30
-
Payload also ships a set of _React_ hooks that you can use in your frontend application. Although they share a common name, these are very different things and should not be confused. [More details](../admin/hooks).
30
+
Payload also ships a set of _React_ hooks that you can use in your frontend application. Although they share a common name, these are very different things and should not be confused. [More details](../admin/react-hooks).
0 commit comments