fix: remove forced SSR fetch policy
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user