Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

lazy load mantineProvider for CSR

AykutSarace9d8415d7f85
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 0a999e6d..f83564aa 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -3,7 +3,7 @@ import type { AppProps } from "next/app";
import dynamic from "next/dynamic";
import Head from "next/head";
import { useRouter } from "next/router";
-import { MantineProvider, createTheme } from "@mantine/core";
+import { createTheme } from "@mantine/core";
import "@mantine/core/styles.css";
import "@mantine/code-highlight/styles.css";
import { ThemeProvider } from "styled-components";
@@ -14,6 +14,10 @@ import { Loading } from "src/layout/Loading";
import { supabase } from "src/lib/api/supabase";
import useUser from "src/store/useUser";
+const MantineProvider = dynamic(() => import("@mantine/core").then(c => c.MantineProvider), {
+ ssr: false,
+});
+
const theme = createTheme({
autoContrast: true,
fontSmoothing: false,