Skip to content

Commit 3cacb89

Browse files
committed
check profiler
1 parent 82ad703 commit 3cacb89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react/src/profiler.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ function withProfiler<P extends Record<string, any>>(
169169

170170
// Copy over static methods from Wrapped component to Profiler HOC
171171
// See: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over
172-
hoistNonReactStatics(Wrapped, WrappedComponent);
172+
// Need to set type to any because of hoist-non-react-statics typing
173+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
174+
hoistNonReactStatics(Wrapped, WrappedComponent as any);
173175
return Wrapped;
174176
}
175177

0 commit comments

Comments
 (0)