Skip to content

Commit 8f9a90c

Browse files
committed
Reorder DeepDive: prose before correct example
1 parent 3cf1bf5 commit 8f9a90c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/content/reference/react

src/content/reference/react/use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,13 @@ function Albums() {
483483
}
484484
```
485485
486+
Ideally, Promises are created before rendering, such as in an event handler, a route loader, or a Server Component, and passed to the component that calls `use`. Fetching lazily in render delays network requests and can create waterfalls.
487+
486488
```js
487489
// ✅ fetchData reads the Promise from a cache.
488490
const albums = use(fetchData('/albums'));
489491
```
490492
491-
Ideally, Promises are created before rendering, such as in an event handler, a route loader, or a Server Component, and passed to the component that calls `use`. Fetching lazily in render delays network requests and can create waterfalls.
492-
493493
</DeepDive>
494494
495495
---

0 commit comments

Comments
 (0)