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 82ad703 commit 3cacb89Copy full SHA for 3cacb89
packages/react/src/profiler.tsx
@@ -169,7 +169,9 @@ function withProfiler<P extends Record<string, any>>(
169
170
// Copy over static methods from Wrapped component to Profiler HOC
171
// See: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over
172
- hoistNonReactStatics(Wrapped, WrappedComponent);
+ // 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);
175
return Wrapped;
176
}
177
0 commit comments