Commit fc4a33e
authored
fix: consider alternate as a key for componentLogsEntry when inspecting raw fiber instance (#31009)
Related - #30899.
Looks like this was missed. We actually do this when we record errors
and warnings before sending them via Bridge:
https://github.com/facebook/react/blob/e4953922a99b5477c3bcf98cdaa2b13ac0a81f0d/packages/react-devtools-shared/src/backend/fiber/renderer.js#L2169-L2173
So, what is happening in the end, errors or warnings are displayed in
the Tree, but when user clicks on the component, nothing is shown,
because `fiberToComponentLogsMap` has only `alternate` as a key.1 parent 04bd67a commit fc4a33e
File tree
1 file changed
+8
-1
lines changed1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1032 | 1036 | | |
1033 | 1037 | | |
1034 | 1038 | | |
| |||
4248 | 4252 | | |
4249 | 4253 | | |
4250 | 4254 | | |
4251 | | - | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
4252 | 4259 | | |
4253 | 4260 | | |
4254 | 4261 | | |
| |||
0 commit comments