Skip to content

Commit 4d5a525

Browse files
committed
react 1.0.7
1 parent 672aa42 commit 4d5a525

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

ts/react/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openmesh-network/xnode-manager-sdk-react",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/Openmesh-Network/xnode-manager-sdk.git"

ts/react/src/utils.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import {
88
useMutation as TanstackUseMutation,
99
} from "@tanstack/react-query";
1010

11-
export type QueryOverrides<Output> = UseQueryOptions<Output | undefined>;
11+
export type QueryOverrides<Output> = Partial<
12+
UseQueryOptions<Output | undefined>
13+
>;
1214

1315
export type UseQueryInput<
1416
Input extends { session: xnode.utils.Session; path?: Path; query?: Query },
@@ -34,10 +36,6 @@ export function useQuery<Output>(
3436
...options,
3537
...overrides,
3638
enabled: options.enabled !== false && overrides?.enabled !== false,
37-
refetchInterval:
38-
(overrides?.refetchInterval !== undefined
39-
? overrides.refetchInterval
40-
: options.refetchInterval) ?? false,
4139
});
4240
}
4341

0 commit comments

Comments
 (0)