Skip to content

Commit

Permalink
Ignore string coercion lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Jul 23, 2024
1 parent 9acb211 commit bdd623f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,10 @@ function mountLazyComponent(
}
}

const loggedComponent = getComponentNameFromType(Component) || String(Component);
const loggedComponent =
getComponentNameFromType(Component) ||
// eslint-disable-next-line react-internal/safe-string-coercion
'' + 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 bdd623f

Please sign in to comment.