Skip to content

Commit 500dbba

Browse files
authored
Apply suggestion from @rickhanlonii
1 parent 367831d commit 500dbba

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • src/content/reference/react

src/content/reference/react/use.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ This cache pattern is the foundation for [re-fetching data](#re-fetching-data-in
663663
<Pitfall>
664664
665665
Don't skip calling `use` based on whether a Promise is already settled.
666-
667666
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.
668667
669668

0 commit comments

Comments
 (0)