Skip to content

Commit

Permalink
fix: disable fetch on focus (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored Jun 30, 2023
1 parent 503736a commit e1e5d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/hooks/api/xcm/use-xcm-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const useXCMBridge = (): UseXCMBridge => {
const queryResult = useQuery({
queryKey,
queryFn: initXCMBridge,
refetchInterval: false
refetchInterval: false,
refetchOnWindowFocus: false
});

const { data, error } = queryResult;
Expand Down

2 comments on commit e1e5d31

@vercel
Copy link

@vercel vercel bot commented on e1e5d31 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e1e5d31 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.