perf: make irregular full page reload go away (#19588)

* chore: Remove PlainChat instance from pages router

* do not dynamically import plain chat
This commit is contained in:
Benny Joo
2025-02-27 10:29:00 -07:00
committed by GitHub
parent 5be2b5bbba
commit b6caf866c9
-2
View File
@@ -7,7 +7,6 @@ import CacheProvider from "react-inlinesvg/provider";
import { trpc } from "@calcom/trpc/react";
import type { AppProps } from "@lib/app-providers";
import PlainChat from "@lib/plain/dynamicProvider";
import "../styles/globals.css";
@@ -22,7 +21,6 @@ function MyApp(props: AppProps) {
return (
<SessionProvider session={pageProps.session ?? undefined}>
<PlainChat />
{/* @ts-expect-error FIXME remove this comment when upgrading typescript to v5 */}
<CacheProvider>
{Component.PageWrapper ? <Component.PageWrapper {...props} /> : <Component {...pageProps} />}