Skip to content

Commit

Permalink
feat(pkgs/wagmi): dont query balances in background
Browse files Browse the repository at this point in the history
  • Loading branch information
LufyCZ committed Mar 30, 2024
1 parent 33f0464 commit 38fca7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/wagmi/src/hooks/balances/useBalanceWeb3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export const useBalanceWeb3 = ({
)
},
refetchInterval: 10000,
refetchIntervalInBackground: false,
refetchOnWindowFocus: true,
enabled: Boolean(chainId && account && enabled),
})
}

0 comments on commit 38fca7e

Please sign in to comment.