Skip to content

Commit e53fc7b

Browse files
authored
Apply suggestion from @rickhanlonii
1 parent d34d003 commit e53fc7b

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
@@ -666,7 +666,6 @@ Don't skip calling `use` based on whether a Promise is already settled.
666666
667667
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
669-
Bypassing `use` this way can corrupt React's internal state tracking, and breaks React DevTools suspense data tracking:
670669
671670
```js
672671
// 🔴 Don't bypass `use` by reading promise status directly

0 commit comments

Comments
 (0)