From 607349e0b8e68c53b170ab2f0c6cfb22baa35b14 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:53:20 -0400 Subject: [PATCH] Update React Profiler reference --- ts/components/Profiler.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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} - + ); }