8000 fix(remix): Use `React.ComponentType` instead of `React.FC` as `withS… · jorrit/sentry-javascript@1971f64 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1971f64

Browse files
fix(remix): Use React.ComponentType instead of React.FC as withSentry's generic type. (getsentry#9043)
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
1 parent 69b308d commit 1971f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/remix/src/client/performance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: Us
9494
* @param OrigApp The Remix root to wrap
9595
* @param options The options for ErrorBoundary wrapper.
9696
*/
97-
export function withSentry<P extends Record<string, unknown>, R extends React.FC<P>>(
97+
export function withSentry<P extends Record<string, unknown>, R extends React.ComponentType<P>>(
9898
OrigApp: R,
9999
options: {
100100
wrapWithErrorBoundary?: boolean;

0 commit comments

Comments
 (0)
0