Skip to content

Commit

Permalink
Keep original behavior if Component isn't a Component
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 23, 2024
1 parent bdd623f commit 228669e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -1891,10 +1891,7 @@ function mountLazyComponent(
}
}

const loggedComponent =
getComponentNameFromType(Component) ||
// eslint-disable-next-line react-internal/safe-string-coercion
'' + Component;
const loggedComponent = getComponentNameFromType(Component) || Component;

// This message intentionally doesn't mention ForwardRef or MemoComponent
// because the fact that it's a separate type of work is an
Expand Down

0 comments on commit 228669e

Please sign in to comment.