Allow 'no-cache' fetchPolicy on serve (#1341)

This commit is contained in:
Iran-110
2022-05-03 13:24:47 +04:30
committed by GitHub
parent f31fa1520c
commit 2ddf5ae3e6
@@ -220,7 +220,7 @@ export function useQueryImpl<
query: currentDocument,
variables: currentVariables,
...currentOptions.value,
...isServer
...(isServer && currentOptions.value?.fetchPolicy !== 'no-cache')
? {
fetchPolicy: 'network-only',
}