Make sure group is refreshed after action

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-02 17:12:59 +01:00
parent 75296498c4
commit 4be5cc787e
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -55,7 +55,10 @@ export function useGroup(
name: unref(name),
...options,
}),
() => ({ enabled: unref(name) !== undefined && unref(name) !== "" })
() => ({
enabled: unref(name) !== undefined && unref(name) !== "",
fetchPolicy: "cache-and-network",
})
);
const group = computed(() => result.value?.group);
return { group, error, loading, onResult, onError, refetch };