Commit f870d46
committed
fix[devtools/useMemoCache]: implement a working copy of useMemoCache (#27659)
In facebook/react#27472 I've removed broken
`useMemoCache` implementation and replaced it with a stub. It actually
produces errors when trying to inspect components, which are compiled
with Forget.
The main difference from the implementation in
facebook/react#26696 is that we are using
corresponding `Fiber` here, which has patched `updateQueue` with
`memoCache`. Previously we would check it on a hook object, which
doesn't have `updateQueue`.
Tested on pages, which are using Forget and by inspecting elements,
which are transpiled with Forget.
DiffTrain build for commit facebook/react@aec521a.1 parent 8988635 commit f870d46
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 | |
|---|---|---|---|
| |||
25474 | 25474 | | |
25475 | 25475 | | |
25476 | 25476 | | |
25477 | | - | |
| 25477 | + | |
25478 | 25478 | | |
25479 | 25479 | | |
25480 | 25480 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9083 | 9083 | | |
9084 | 9084 | | |
9085 | 9085 | | |
9086 | | - | |
| 9086 | + | |
9087 | 9087 | | |
9088 | 9088 | | |
9089 | 9089 | | |
| |||
9114 | 9114 | | |
9115 | 9115 | | |
9116 | 9116 | | |
9117 | | - | |
| 9117 | + | |
9118 | 9118 | | |
9119 | 9119 | | |
9120 | 9120 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9509 | 9509 | | |
9510 | 9510 | | |
9511 | 9511 | | |
9512 | | - | |
| 9512 | + | |
9513 | 9513 | | |
9514 | 9514 | | |
9515 | 9515 | | |
| |||
9540 | 9540 | | |
9541 | 9541 | | |
9542 | 9542 | | |
9543 | | - | |
| 9543 | + | |
9544 | 9544 | | |
9545 | 9545 | | |
9546 | 9546 | | |
| |||
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 | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments