1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: error boundary plausible (#3389)

This commit is contained in:
Mateusz Kwasniewski 2023-03-27 13:17:37 +02:00 committed by GitHub
parent dec16ce555
commit a1535aed91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,10 +47,11 @@ export const App = () => {
}, [authDetails, user]);
return (
<ErrorBoundary FallbackComponent={Error}>
<PlausibleProvider>
<ErrorBoundary FallbackComponent={Error}>
<SWRProvider>
<Suspense fallback={<Loader />}>
<PlausibleProvider>
<ConditionallyRender
condition={!hasFetchedAuth}
show={<Loader />}
@ -77,7 +78,9 @@ export const App = () => {
}
>
<ProtectedRoute
route={route}
route={
route
}
/>
</LayoutPicker>
}
@ -85,7 +88,9 @@ export const App = () => {
))}
<Route
path="/"
element={<InitialRedirect />}
element={
<InitialRedirect />
}
/>
<Route
path="*"
@ -100,9 +105,10 @@ export const App = () => {
</>
}
/>
</PlausibleProvider>
</Suspense>
</SWRProvider>
</ErrorBoundary>
</PlausibleProvider>
</ErrorBoundary>
);
};