Skip to content

Commit

Permalink
Merge pull request joschan21#1 from matthewrosse/fix/query-client-out…
Browse files Browse the repository at this point in the history
…side-of-providers

Move the initialization of QueryClient outside of Providers component
  • Loading branch information
joschan21 authored Jul 3, 2023
2 parents 130882a + befc7aa commit 8c84d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ interface LayoutProps {
children: ReactNode
}

const Providers: FC<LayoutProps> = ({ children }) => {
const queryClient = new QueryClient()
const queryClient = new QueryClient()

const Providers: FC<LayoutProps> = ({ children }) => {
return (
<QueryClientProvider client={queryClient}>
<SessionProvider>{children}</SessionProvider>
Expand Down

0 comments on commit 8c84d03

Please sign in to comment.