From 1447e0033a6e87d1d7b8013b5e4116ad2259439a Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Mon, 19 Feb 2024 22:13:24 +0530 Subject: [PATCH] fix(web): Add ScrollRestoration --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 88ca1c1..640c89e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import { Outlet, Route, Routes, + ScrollRestoration, useLocation, useNavigate, } from "react-router-dom"; @@ -250,8 +251,6 @@ function AppReady() { const isQueryFetching = useIsFetching(); const isMutating = useIsMutating(); - console.info(location.pathname + "----" + isQueryFetching); - useLayoutEffect(() => { async function checkForUpdates() { try { @@ -289,6 +288,7 @@ function AppReady() { +