Skip to content

Commit 6c1a3d0

Browse files
paulbalajiclaude
andcommitted
fix: add staleTime: Infinity to useWarpFees query
Tx receipts are immutable once confirmed, so there's no need to refetch on remount. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fe06b9d commit 6c1a3d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/features/messages/warpFees/useWarpFees.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function useWarpFees(
1414
queryKey: ['warpFees', message.id, warpRouteDetails?.originToken.addressOrDenom],
1515
queryFn: () => fetchWarpFees(message, warpRouteDetails!, multiProvider),
1616
enabled: !!warpRouteDetails,
17+
staleTime: Infinity,
1718
});
1819

1920
return data ?? null;

0 commit comments

Comments
 (0)