Commit 93f6c27
fix: update use.md pitfall to make conditional calling clearer (#8499)
* fix: update use.md pitfall to mention that bypassing use can corrupt React's internal state tracking
* Apply suggestion from @rickhanlonii
* Apply suggestion from @rickhanlonii
* Apply suggestion from @rickhanlonii
* Apply suggestion from @rickhanlonii
* Update use.md with caution on bypassing `use`
Add warning about bypassing `use` and its effects on React Suspense.
* Apply suggestion from @rickhanlonii
* Update guidance on using the `use` hook with Promises
Clarify usage of `use` hook regarding Promise handling.
* Clarify usage of `use` with Promises
---------
Co-authored-by: Ricky <rickhanlonii@gmail.com>1 parent 1f48fb4 commit 93f6c27
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
666 | 669 | | |
667 | 670 | | |
668 | | - | |
| 671 | + | |
669 | 672 | | |
670 | 673 | | |
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
674 | 677 | | |
675 | 678 | | |
676 | | - | |
| 679 | + | |
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
| 683 | + | |
| 684 | + | |
680 | 685 | | |
681 | 686 | | |
682 | 687 | | |
| |||
0 commit comments