Skip to content

Commit

Permalink
remove error boundary - doesnt work with next export
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Apr 2, 2024
1 parent 2784072 commit 0520c52
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 125 deletions.
97 changes: 0 additions & 97 deletions components/ErrorBoundary.tsx

This file was deleted.

53 changes: 25 additions & 28 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,37 @@ import {
} from "@tanstack/react-query";
import "@/styles/fonts.css";
import { Toaster } from "react-hot-toast";
import ErrorBoundary from "@/components/ErrorBoundary";

export default function App({ Component, pageProps }: AppProps) {
const [queryClient] = useState(() => new QueryClient());

return (
<>
<ErrorBoundary>
<QueryClientProvider client={queryClient}>
<Hydrate state={pageProps.dehydratedState}>
<DocumentHeader />
<ChakraProvider theme={theme}>
<Toaster
position="top-center"
reverseOrder={false}
gutter={8}
containerClassName=""
containerStyle={{}}
toastOptions={{
// Define default options
// className: "unbrewed-",
duration: 5000,
style: {
background: "#363636",
color: "#fff",
},
}}
/>
{/* @ts-ignore */}
<Component {...pageProps} />
</ChakraProvider>
</Hydrate>
</QueryClientProvider>
</ErrorBoundary>
<QueryClientProvider client={queryClient}>
<Hydrate state={pageProps.dehydratedState}>
<DocumentHeader />
<ChakraProvider theme={theme}>
<Toaster
position="top-center"
reverseOrder={false}
gutter={8}
containerClassName=""
containerStyle={{}}
toastOptions={{
// Define default options
// className: "unbrewed-",
duration: 5000,
style: {
background: "#363636",
color: "#fff",
},
}}
/>
{/* @ts-ignore */}
<Component {...pageProps} />
</ChakraProvider>
</Hydrate>
</QueryClientProvider>
</>
);
}

0 comments on commit 0520c52

Please sign in to comment.