fix: stabilize frontend query cache contracts
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user