Skip to content

Commit

Permalink
offlineFirst for networks query (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruijialin-avalabs authored Jun 6, 2024
1 parent 43bc9ee commit cf53c86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core-mobile/app/hooks/networks/useGetNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const useGetNetworks = (): UseQueryResult<Networks, Error> => {
return useQuery({
queryKey: [ReactQueryKeys.NETWORKS],
queryFn: () => NetworkService.getNetworks(),
staleTime: Infinity
staleTime: Infinity,
networkMode: 'offlineFirst'
})
}

0 comments on commit cf53c86

Please sign in to comment.