Skip to content

Commit 3cd1723

Browse files
authored
Mention use as a Suspense-enabled data source (#6340)
Maybe it's debatable whether we want to link to canary APIs in other pages but I feel like here it's more useful than not.
1 parent c45fa10 commit 3cd1723

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/content/reference/react-dom/server/renderToPipeableStream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ Streaming does not need to wait for React itself to load in the browser, or for
288288
289289
- Data fetching with Suspense-enabled frameworks like [Relay](https://relay.dev/docs/guided-tour/rendering/loading-states/) and [Next.js](https://nextjs.org/docs/getting-started/react-essentials)
290290
- Lazy-loading component code with [`lazy`](/reference/react/lazy)
291+
- Reading the value of a Promise with [`use`](/reference/react/use)
291292
292293
Suspense **does not** detect when data is fetched inside an Effect or event handler.
293294

src/content/reference/react-dom/server/renderToReadableStream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ Streaming does not need to wait for React itself to load in the browser, or for
287287
288288
- Data fetching with Suspense-enabled frameworks like [Relay](https://relay.dev/docs/guided-tour/rendering/loading-states/) and [Next.js](https://nextjs.org/docs/getting-started/react-essentials)
289289
- Lazy-loading component code with [`lazy`](/reference/react/lazy)
290+
- Reading the value of a Promise with [`use`](/reference/react/use)
290291
291292
Suspense **does not** detect when data is fetched inside an Effect or event handler.
292293

src/content/reference/react/Suspense.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ async function getAlbums() {
254254

255255
- Data fetching with Suspense-enabled frameworks like [Relay](https://relay.dev/docs/guided-tour/rendering/loading-states/) and [Next.js](https://nextjs.org/docs/getting-started/react-essentials)
256256
- Lazy-loading component code with [`lazy`](/reference/react/lazy)
257+
- Reading the value of a Promise with [`use`](/reference/react/use)
257258

258259
Suspense **does not** detect when data is fetched inside an Effect or event handler.
259260

src/content/reference/react/useDeferredValue.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ During updates, the <CodeStep step={2}>deferred value</CodeStep> will "lag behin
8282

8383
<Note>
8484

85-
This example assumes you use one of Suspense-enabled data sources:
85+
This example assumes you use a Suspense-enabled data source:
8686

8787
- Data fetching with Suspense-enabled frameworks like [Relay](https://relay.dev/docs/guided-tour/rendering/loading-states/) and [Next.js](https://nextjs.org/docs/getting-started/react-essentials)
8888
- Lazy-loading component code with [`lazy`](/reference/react/lazy)
89+
- Reading the value of a Promise with [`use`](/reference/react/use)
8990

9091
[Learn more about Suspense and its limitations.](/reference/react/Suspense)
9192

0 commit comments

Comments
 (0)