From 44349d4032f2b9e2fb21bf66230bf51d22270575 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 18 Sep 2023 15:46:02 -0700 Subject: [PATCH] Update performance.tsx Use generic that encapsulates all component types --- packages/remix/src/client/performance.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remix/src/client/performance.tsx b/packages/remix/src/client/performance.tsx index f47d11760556..5e9498db147e 100644 --- a/packages/remix/src/client/performance.tsx +++ b/packages/remix/src/client/performance.tsx @@ -90,7 +90,7 @@ export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: Us * @param OrigApp The Remix root to wrap * @param options The options for ErrorBoundary wrapper. */ -export function withSentry

, R extends React.FC

>( +export function withSentry

, R extends React.ComponentType

>( OrigApp: R, options: { wrapWithErrorBoundary?: boolean;