From addf7e643f2a17e62ac523ae76e51518b244bf01 Mon Sep 17 00:00:00 2001 From: Fran McDade Date: Wed, 8 Nov 2023 18:18:16 +1000 Subject: [PATCH] fix: fix unwanted rerender from ErrorBoundary component (#3756) (#3757) Co-authored-by: Fran McDade --- explorer/pages/_app.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/explorer/pages/_app.tsx b/explorer/pages/_app.tsx index ffbfde108..dd9b5b6d3 100644 --- a/explorer/pages/_app.tsx +++ b/explorer/pages/_app.tsx @@ -19,7 +19,6 @@ import { CssBaseline } from "@mui/material"; import { ThemeProvider } from "@mui/material/styles"; import { config } from "app/config/config"; import type { AppProps } from "next/app"; -import { useRouter } from "next/router"; import { useEffect } from "react"; import TagManager from "react-gtm-module"; @@ -28,7 +27,6 @@ const SESSION_TIMEOUT = 15 * 60 * 1000; // 15 minutes function MyApp({ Component, pageProps }: AppProps): JSX.Element { // Set up the site configuration, layout and theme. const appConfig = config(); - const { asPath } = useRouter(); const { analytics, layout, redirectRootToPath, themeOptions } = appConfig; const { gtmAuth, gtmId, gtmPreview } = analytics || {}; const theme = createAppTheme(themeOptions); @@ -54,7 +52,6 @@ function MyApp({ Component, pageProps }: AppProps): JSX.Element {
(