fix: stabilize frontend query cache contracts

This commit is contained in:
2026-08-23 15:20:08 +03:00
parent b285719c1b
commit 1250581ee3
12 changed files with 151 additions and 35 deletions
@@ -12,14 +12,13 @@ export function useBrokerageEvents(
accessToken: string | null,
) {
return useQuery({
queryKey: ["brokerage-events", accountId ?? ""] as const,
enabled: Boolean(accountId && accessToken),
staleTime: 30_000,
retry: false,
...apiQueryClient.queryOptions(
"get",
"/api/v1/brokerage-accounts/{accountId}/events",
{ params: { path: { accountId: accountId ?? "" } } },
),
enabled: Boolean(accountId && accessToken),
staleTime: 30_000,
retry: false,
});
}