fix: remove forced SSR fetch policy

This commit is contained in:
Fabians Geikins
2026-02-26 18:37:28 +02:00
parent fb027e6adf
commit c2f831acf7
2 changed files with 0 additions and 9 deletions
@@ -280,11 +280,6 @@ export function useQueryImpl<
query: currentDocument,
variables: currentVariables ?? {} as TVariables,
...currentOptions.value,
...(isServer && currentOptions.value?.fetchPolicy !== 'no-cache')
? {
fetchPolicy: 'network-only',
}
: {},
})
startQuerySubscription()
@@ -30,10 +30,6 @@ export default class SmartQuery extends SmartApollo {
})
}
if (isServer) {
this.options.fetchPolicy = 'network-only'
}
if (!options.manual) {
this.hasDataField = Object.prototype.hasOwnProperty.call(this.vm.$data, key)
if (this.hasDataField) {