Bug: can't get the correct fiberNode.child in classComponent

This issue has been created since 2022-09-01.

React version: 18.2.0

Steps To Reproduce

Link to code example: https://codesandbox.io/s/priceless-jerry-4ph5q0?file=/src/App.js:0-1160

The current behavior

this._reactInternals.child is null

The expected behavior

gaearon wrote this answer on 2022-09-01

It’s not supported to read internal objects. What are you trying to do?

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-09-26
Star Count 195293
Watcher Count 6655
Fork Count 40426
Issue Count 1113

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Checkbox to show song tags on stage monitor 0 2021-12-14 2022-08-11
AppImage not appearing in my applications menu 1 2021-03-28 2022-09-07
Virtual InMoov Loads Twice 1 2022-01-30 2022-08-10
Do not leave repo just to robots 2 2022-07-07 2022-09-12
Question: Unable to find any JVMs matching version "null" 4 2021-10-10 2022-08-26
panic when not supplying a path 0 2022-04-28 2022-07-03
Can't create flatpak depending on `dateutil` because it can't build `dateutil` 0 2021-09-08 2022-09-18
Fails on pages loaded before the extension was installed 2 2020-08-08 2022-09-03
conflict with python-netcdf4 1 2021-02-26 2022-08-27
`urandom_range` unable to support 32-bit range 5 2022-03-26 2022-09-08
"from mail" doesn't appear in email 2 2022-02-10 2022-09-10
Clock in bottom status bar awakes inactive tab in Byobu 2 2021-04-27 2022-09-22
badgeContent in 2.0 not working 0 2021-09-14 2022-09-13
improvements to organization 1 2022-02-09 2022-09-06
Problem with one specif book 7 2021-08-02 2022-09-26
[bug] FAB gap styling 2 2021-10-02 2022-09-08
[BUG] contains_re hangs with some regexp patterns 1 2022-01-10 2022-09-19
wrk has https support 2 2021-03-17 2022-09-22
`test_macos` is broken 3 2021-10-05 2022-08-11
Problem with case-sensitive filesystem 4 2020-08-13 2022-09-12
NatMap - ABS data group page edits 0 2021-10-06 2022-06-18
TODO before 1.0 release 3 2021-02-04 2022-03-16
The option to select oldest dependencies does not make a lot of sense under the --connectivity flag 1 2021-02-09 2022-08-01
@mention tags in a channel 0 2022-08-25 2022-09-14
Help request 1 2016-08-31 2022-01-12
Player is playing with no audio going through 1 2022-01-22 2022-09-25
[cloud-starting-cloudfunctions-v2]: Deploy Flag should be --gen2 1 2021-09-23 2022-09-08
[BUG] tokenUrl is not generating the token and giving a 404 Not Found 6 2022-03-20 2022-09-19
Incorrect logic or return type specification in `extract_path_tokens` 1 2021-06-25 2022-09-25
Expose a method to register SqlDurabilityProviderFactory for integration testing purpose 3 2021-06-12 2022-09-07
12 - Chainable Options 0 2022-06-27 2022-09-16
Version 9.0 Relation "index_taggings_on_tag_id" already exists 2 2022-01-05 2022-09-25
[feature request] allows users to customize the key type of El form rule 2 2021-10-19 2022-07-28
BUG 1.3.3: pytest is failing when `pytest-randomly` pytest plugin is used 8 2021-09-12 2022-08-10
Cutom order of the tabs & movable using drag and Drop 5 2022-04-25 2022-08-18
Unhelpful error message: error: attribute 'name' missing 0 2022-04-08 2022-09-23
Untranslatable widget strings 0 2022-06-23 2022-09-18
AssertionError: ..vocab 9 2022-01-02 2022-09-21
IdP Test non raggiungibile 3 2021-05-31 2022-09-17
[ux][landing page] Description, license spacing 2 2021-08-06 2022-07-27
Support tagged content in PDF exports for accessible heading structure 1 2022-01-25 2022-09-24
Information on named-pipe or changing default-linux context 2 2021-11-23 2022-09-26
torchscript export: success on yolov5s and bad results on yolov5m 10 2022-01-03 2022-09-26
cmd/go: improve error messages for race detector link failures when cross-compiling 9 2021-11-23 2022-09-02
Enable history-search with arrow keys 4 2014-02-16 2022-09-12
`GetExitCodeThread` should return `NTSTATUS` struct/enum 9 2022-08-21 2022-08-30
SABnzb stopped working 2 2022-03-04 2022-09-26
provide recommended alternative after deprecation 2 2022-03-04 2022-09-26
Using a service account for gke is not working 0 2022-01-24 2022-09-13
Select dropdownRender 自定义内容点击后不会关闭 3 2022-07-22 2022-09-20