Skip to content

Commit f619623

Browse files
committed
fix: remove location force render from layout
1 parent 6cf0d00 commit f619623

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

apps/web/src/components/Layout/Layout.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
import { useEffect } from 'react';
2-
3-
import { Outlet, useLocation } from 'react-router-dom';
4-
5-
import { queryClient } from '@/services/react-query';
1+
import { Outlet } from 'react-router-dom';
62

73
import { Footer } from '../Footer';
84
import { Navbar } from '../Navbar';
95
import { Sidebar } from '../Sidebar';
106

117
export const Layout = () => {
12-
// const location = useLocation();
13-
14-
// useEffect(() => {
15-
// queryClient.clear();
16-
// }, [location.pathname]);
17-
188
return (
199
<div className="flex h-screen w-screen flex-col md:flex-row">
2010
<div className="absolute md:hidden">

0 commit comments

Comments
 (0)