Skip to content

Commit 94280d9

Browse files
committed
Add note on serializable types
1 parent 75ab018 commit 94280d9

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/start/framework/data-loading.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Loader data is automatically serialized from loaders and deserialized in compone
1515

1616
The type for the `loaderData` prop is [automatically generated][type-safety].
1717

18+
<docs-info>We try to support the same set of [serializable types][serializable-types] that React permits server components to pass as props to client components. This future proofs your application for any eventual migration to [RSC][rsc].</docs-info>
19+
1820
## Client Data Loading
1921

2022
`clientLoader` is used to fetch data on the client. This is useful for pages or full projects that you'd prefer to fetch data from the browser only.
@@ -182,14 +184,18 @@ export default function Product() {
182184

183185
---
184186

185-
Next: [Actions](./actions)
187+
Next: [Actions][actions]
186188

187189
See also:
188190

189-
- [Streaming with Suspense](../../how-to/suspense)
190-
- [Client Data](../../how-to/client-data)
191-
- [Using Fetchers](../../how-to/fetchers#loading-data)
191+
- [Streaming with Suspense][streaming]
192+
- [Client Data][client-data]
193+
- [Using Fetchers][fetchers]
192194

193-
[advanced_data_fetching]: ../tutorials/advanced-data-fetching
194-
[data]: ../../api/react-router/data
195195
[type-safety]: ../../explanation/type-safety
196+
[serializable-types]: https://react.dev/reference/rsc/use-client#serializable-types
197+
[rsc]: ../../how-to/react-server-components
198+
[actions]: ./actions
199+
[streaming]: ../../how-to/suspense
200+
[client-data]: ../../how-to/client-data
201+
[fetchers]: ../../how-to/fetchers#loading-data

0 commit comments

Comments
 (0)