From 4be5cc787ef860bd60fbfc0ad982b36cc35b61ae Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 2 Nov 2022 17:12:59 +0100 Subject: [PATCH] Make sure group is refreshed after action Signed-off-by: Thomas Citharel --- js/src/composition/apollo/group.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/src/composition/apollo/group.ts b/js/src/composition/apollo/group.ts index 63c238ebe..0483d5872 100644 --- a/js/src/composition/apollo/group.ts +++ b/js/src/composition/apollo/group.ts @@ -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 };