Skip to content

Commit

Permalink
fix(namadillo): referencing the same store than other places of the a…
Browse files Browse the repository at this point in the history
…pp (#1007)
  • Loading branch information
pedrorezende authored Aug 16, 2024
1 parent c3dbd98 commit e7c465e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/namadillo/src/App/Common/QueryProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { getDefaultStore } from "jotai";
import { queryClientAtom } from "jotai-tanstack-query";
import { Provider as JotaiProvider } from "jotai/react";
import { useHydrateAtoms } from "jotai/utils";
Expand Down Expand Up @@ -42,7 +43,7 @@ export const QueryProvider = ({
}): JSX.Element => {
return (
<QueryClientProvider client={queryClient}>
<JotaiProvider>
<JotaiProvider store={getDefaultStore()}>
<HydrateAtoms>{children}</HydrateAtoms>
</JotaiProvider>
</QueryClientProvider>
Expand Down

0 comments on commit e7c465e

Please sign in to comment.