Fix some React lifecycle and rendering errors that exist in build

This commit is contained in:
Gabe Kangas
2023-01-10 16:39:12 -08:00
parent e9d43492d0
commit d8a5380b7f
16 changed files with 85 additions and 102 deletions

View File

@@ -17,28 +17,12 @@ import { DisplayableError } from '../../types/displayable-error';
import setupNoLinkReferrer from '../../utils/no-link-referrer';
import { ServerRenderedHydration } from '../ServerRendered/ServerRenderedHydration';
import { Content } from '../ui/Content/Content';
import { TitleNotifier } from '../TitleNotifier/TitleNotifier';
import { PushNotificationServiceWorker } from '../workers/PushNotificationServiceWorker/PushNotificationServiceWorker';
import { Theme } from '../theme/Theme';
// Lazy loaded components
const TitleNotifier = dynamic(
() => import('../TitleNotifier/TitleNotifier').then(mod => mod.TitleNotifier),
{
ssr: false,
},
);
const PushNotificationServiceWorker = dynamic(
() =>
import('../workers/PushNotificationServiceWorker/PushNotificationServiceWorker').then(
mod => mod.PushNotificationServiceWorker,
),
{
ssr: false,
},
);
const FatalErrorStateModal = dynamic(
() =>
import('../modals/FatalErrorStateModal/FatalErrorStateModal').then(