From 582bfa568ef7a542ca2ab11545d0d3c024cc1815 Mon Sep 17 00:00:00 2001 From: Grant Date: Sat, 13 Jul 2024 12:07:46 -0600 Subject: [PATCH] Fix ErrorBoundary issue --- packages/client/src/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/index.tsx b/packages/client/src/index.tsx index bf6cc34..fc201d9 100644 --- a/packages/client/src/index.tsx +++ b/packages/client/src/index.tsx @@ -7,7 +7,9 @@ import Bugsnag from "@bugsnag/js"; import BugsnagPluginReact from "@bugsnag/plugin-react"; import BugsnagPerformance from "@bugsnag/browser-performance"; -let ErrorBoundary: any = <>; +let ErrorBoundary: any = ({ children }: React.PropsWithChildren) => ( + <>{children} +); if (import.meta.env.VITE_BUGSNAG_KEY) { Bugsnag.start({