Skip to content

Commit

Permalink
fix: wagmi issue with react query
Browse files Browse the repository at this point in the history
  • Loading branch information
thecil committed Sep 6, 2024
1 parent d3f27ca commit 8cdeab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/components/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ThemeProvider } from "next-themes";
import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
import { hashFn } from "wagmi/query";
import { wagmiConfig } from "@/config/wagmi-config";
import { structuralSharing } from '@wagmi/core/query';

type Props = {
children: ReactNode;
Expand All @@ -26,6 +27,7 @@ const Providers = ({ children, cookie }: Props) => {
staleTime: 30 * 1000, // 30 secs
gcTime: 60 * 1000, // 60 secs
queryKeyHashFn: hashFn,
structuralSharing
},
},
}),
Expand Down

0 comments on commit 8cdeab9

Please sign in to comment.