Commit 5b51a2b
authored
fix[DevTools]: support useResourceEffect (facebook#32088)
Since we've started experimenting with it, I've started seeing a spike
in errors:
```
Unsupported hook in the react-debug-tools package: Missing method in Dispatcher: useResourceEffect
```
Adding missing hook to the `Dispatcher` that is proxied by React
DevTools.
I can't really add an example that will use it to our RDT testing shell,
because it uses experimental builds of `react`, which don't have this
hook. I've tested it manually by rebuilding artifacts with
`enableUseResourceEffectHook` flag enabled.
1 parent 6093f18 commit 5b51a2b
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
734 | 752 | | |
735 | 753 | | |
736 | 754 | | |
| |||
755 | 773 | | |
756 | 774 | | |
757 | 775 | | |
| 776 | + | |
758 | 777 | | |
759 | 778 | | |
760 | 779 | | |
| |||
943 | 962 | | |
944 | 963 | | |
945 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
946 | 969 | | |
947 | 970 | | |
948 | 971 | | |
| |||
0 commit comments