You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react/use.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -666,7 +666,6 @@ Don't skip calling `use` based on whether a Promise is already settled.
666
666
667
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.
668
668
669
-
Bypassing `use` this way can corrupt React's internal state tracking, and breaks React DevTools suspense data tracking:
670
669
671
670
```js
672
671
// 🔴 Don't bypass `use` by reading promise status directly
0 commit comments