diff --git a/ts/components/Profiler.tsx b/ts/components/Profiler.tsx index fc2165bd23d5..0c1f794f5191 100644 --- a/ts/components/Profiler.tsx +++ b/ts/components/Profiler.tsx @@ -20,14 +20,6 @@ type InternalPropsType = Readonly<{ ): void; }>; -function Fallback({ children }: InternalPropsType): JSX.Element { - return <>{children}; -} - -const BaseProfiler: React.FC = - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (React as any).unstable_Profiler || Fallback; - export type PropsType = Readonly<{ id: string; children: ReactNode; @@ -50,8 +42,8 @@ const onRender: InternalPropsType['onRender'] = ( export function Profiler({ id, children }: PropsType): JSX.Element { return ( - + {children} - + ); }