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:
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user