We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4781831 commit bc150edCopy full SHA for bc150ed
packages/react-debug-tools/src/ReactDebugHooks.js
@@ -1004,11 +1004,11 @@ function buildTree(
1004
1005
// For the time being, only State and Reducer hooks support runtime overrides.
1006
const isStateEditable = primitive === 'Reducer' || primitive === 'State';
1007
-
+ const name = displayName || primitive;
1008
const levelChild: HooksNode = {
1009
id,
1010
isStateEditable,
1011
- name: displayName || 'Unknown',
+ name: name,
1012
value: hook.value,
1013
subHooks: [],
1014
debugInfo: debugInfo,
0 commit comments