React refs created by useRef() are not logged correctly before the DOM is loaded
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
People
(Reporter: miker, Unassigned)
References
Details
Attachments
(3 files)
STR
- Load the attached document feature.html with the DevTools closed.
- Press
[option]
+[command]
+[k]
to open the Web Console.
You will see that the Web Console correctly reports domRef.current = undefined
but the domRef
object is then logged showing that domRef.current
is defined.
Confusingly, logging domRef.current
again shows that the object is, in fact, still undefined
:
domRef.current
= undefined
domRef
= > Object {.current: p + }
domRef.current
= undefined
NOTE: This only happens on the first load of DevTools so reloading the page displays the values correctly.
Reporter | ||
Comment 1•3 years ago
|
||
Firefox seems unsure whether domRef.current
is defined or not.
Reporter | ||
Comment 2•3 years ago
|
||
Chrome gets it right
Comment 3•3 years ago
|
||
Nicolas, can you find related bugs about expanding properties showing only current values.
Comment 4•3 years ago
|
||
Looks like an issue between cache vs live messages
(In reply to Julian Descottes [:jdescottes] from comment #3)
Nicolas, can you find related bugs about expanding properties showing only current values.
It's Bug 1505304
Description
•