Skip to content

Commit 6e953e0

Browse files
authored
Clarify usage of use with Promises
1 parent d18c73a commit 6e953e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/content/reference/react

src/content/reference/react/use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ This cache pattern is the foundation for [re-fetching data](#re-fetching-data-in
664664
665665
Don't skip calling `use` based on whether a Promise is already settled.
666666
667-
Unlike other hooks, `use` can be called inside conditions and loops — but it must always be called for the Promise itself. Never read `promise.status` or `promise.value` directly to bypass `use`; always pass the Promise to `use` and let React handle it.
667+
Unlike other hooks, `use` can be called inside conditions and loops — but it must always be called for the Promise itself. Never read `promise.status` or `promise.value` directly to bypass `use`; always pass the Promise to `use` and let React handle it.
668668
669669
670670
```js

0 commit comments

Comments
 (0)