Skip to content

Commit

Permalink
fix: remove location force render from layout
Browse files Browse the repository at this point in the history
  • Loading branch information
joshunrau committed Dec 19, 2024
1 parent 6cf0d00 commit f619623
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions apps/web/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
import { useEffect } from 'react';

import { Outlet, useLocation } from 'react-router-dom';

import { queryClient } from '@/services/react-query';
import { Outlet } from 'react-router-dom';

import { Footer } from '../Footer';
import { Navbar } from '../Navbar';
import { Sidebar } from '../Sidebar';

export const Layout = () => {
// const location = useLocation();

// useEffect(() => {
// queryClient.clear();
// }, [location.pathname]);

return (
<div className="flex h-screen w-screen flex-col md:flex-row">
<div className="absolute md:hidden">
Expand Down

0 comments on commit f619623

Please sign in to comment.