We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ce6ce commit 93ea7d1Copy full SHA for 93ea7d1
packages/scan/src/core/utils.ts
@@ -169,7 +169,7 @@ export const getLabelText = (
169
export const updateFiberRenderData = (fiber: Fiber, renders: Array<Render>) => {
170
ReactScanInternals.options.value.onRender?.(fiber, renders);
171
const type = getType(fiber.type) || fiber.type;
172
- if (type && typeof type === 'function' && typeof type === 'object') {
+ if (type && (typeof type === 'function' || typeof type === 'object')) {
173
const renderData = (type.renderData || {
174
count: 0,
175
time: 0,
0 commit comments