diff --git a/apps/remix/app/components/general/refresh-on-focus.tsx b/apps/remix/app/components/general/refresh-on-focus.tsx index a86bc65b6..bf8f7a68a 100644 --- a/apps/remix/app/components/general/refresh-on-focus.tsx +++ b/apps/remix/app/components/general/refresh-on-focus.tsx @@ -2,6 +2,9 @@ import { useCallback, useEffect } from 'react'; import { useRevalidator } from 'react-router'; +/** + * Not really used anymore, this causes random 500s when the user refreshes while this occurs. + */ export const RefreshOnFocus = () => { const { revalidate, state } = useRevalidator(); diff --git a/apps/remix/app/root.tsx b/apps/remix/app/root.tsx index 8e72dee2d..c9a453622 100644 --- a/apps/remix/app/root.tsx +++ b/apps/remix/app/root.tsx @@ -27,7 +27,6 @@ import { TooltipProvider } from '@documenso/ui/primitives/tooltip'; import type { Route } from './+types/root'; import stylesheet from './app.css?url'; import { GenericErrorLayout } from './components/general/generic-error-layout'; -import { RefreshOnFocus } from './components/general/refresh-on-focus'; import { langCookie } from './storage/lang-cookie.server'; import { themeSessionResolver } from './storage/theme-session.server'; import { appMetaTags } from './utils/meta'; @@ -159,8 +158,6 @@ export function LayoutContent({ children }: { children: React.ReactNode }) { - -