Skip to content

Commit 34c89af

Browse files
committed
react 1.0.10
1 parent 7c64f62 commit 34c89af

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
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.9",
3+
"version": "1.0.10",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/Openmesh-Network/xnode-manager-sdk.git"

ts/react/src/config.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,14 @@ export function useConfigContainerChange(
7474
mutationFn: xnode.config.change,
7575
onSuccess: ({ request_id }, { session, path: { container } }) => {
7676
awaitRequest({ request: { session, path: { request_id } } }).then(() =>
77-
queryClient.invalidateQueries({
78-
queryKey: ["useConfigContainer", session.baseUrl, container],
79-
})
77+
Promise.all([
78+
queryClient.invalidateQueries({
79+
queryKey: ["useConfigContainers", session.baseUrl],
80+
}),
81+
queryClient.invalidateQueries({
82+
queryKey: ["useConfigContainer", session.baseUrl, container],
83+
}),
84+
])
8085
);
8186
},
8287
},

0 commit comments

Comments
 (0)