We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14d8cf commit 56fc03bCopy full SHA for 56fc03b
src/blueapi/blueapi.ts
@@ -44,13 +44,12 @@ export function useBlueApiCall(
44
pollRateMillis?: number,
45
queryKey?: string
46
) {
47
- return useQuery(
48
- queryKey ?? "BlueApiCall",
49
- async () => await blueApiCall(endpoint, method, body),
50
- {
51
- refetchInterval: pollRateMillis ?? 500,
52
- }
53
- );
+ const fetchCall = async () => {
+ return await blueApiCall(endpoint, method, body);
+ };
+ return useQuery(queryKey ?? "BlueApiCall", fetchCall, {
+ refetchInterval: pollRateMillis ?? 500,
+ });
54
}
55
56
export function processUseBlueApiCall(
0 commit comments