Commit 0ad2062
committed
DevTools: Add support for useOptimistic Hook (#27982)
## Summary
Add support for `useOptimistic` Hook fixing "Unsupported hook in the
react-debug-tools package: Missing method in Dispatcher: useOptimistic"
when inspecting components using `useOptimistic`
## How did you test this change?
- Added test following the same pattern as for `useDeferredValue`
DiffTrain build for commit 85cc017.1 parent 1bdb35f commit 0ad2062
7 files changed
Lines changed: 9 additions & 9 deletions
File tree
- compiled-rn/facebook-fbsource/xplat/js
- RKJSModules/vendor
- react-test-renderer/cjs
- react/cjs
- react-native-github/Libraries/Renderer
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25622 | 25622 | | |
25623 | 25623 | | |
25624 | 25624 | | |
25625 | | - | |
| 25625 | + | |
25626 | 25626 | | |
25627 | 25627 | | |
25628 | 25628 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9171 | 9171 | | |
9172 | 9172 | | |
9173 | 9173 | | |
9174 | | - | |
| 9174 | + | |
9175 | 9175 | | |
9176 | 9176 | | |
9177 | 9177 | | |
| |||
9202 | 9202 | | |
9203 | 9203 | | |
9204 | 9204 | | |
9205 | | - | |
| 9205 | + | |
9206 | 9206 | | |
9207 | 9207 | | |
9208 | 9208 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9599 | 9599 | | |
9600 | 9600 | | |
9601 | 9601 | | |
9602 | | - | |
| 9602 | + | |
9603 | 9603 | | |
9604 | 9604 | | |
9605 | 9605 | | |
| |||
9630 | 9630 | | |
9631 | 9631 | | |
9632 | 9632 | | |
9633 | | - | |
| 9633 | + | |
9634 | 9634 | | |
9635 | 9635 | | |
9636 | 9636 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments