fix(composable): Remove immediate result logic (#1388)

This commit is contained in:
Tatsuyuki Ishi 2022-10-05 22:31:51 +09:00 committed by GitHub
parent 6c07a47d33
commit fc983077dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,14 +228,6 @@ export function useQueryImpl<
startQuerySubscription()
if (!isServer && (currentOptions.value?.fetchPolicy !== 'no-cache' || currentOptions.value.notifyOnNetworkStatusChange)) {
const currentResult = query.value.getCurrentResult()
if (!currentResult.loading || currentResult.partial || currentOptions.value?.notifyOnNetworkStatusChange) {
onNextResult(currentResult)
}
}
if (!isServer) {
for (const item of subscribeToMoreItems) {
addSubscribeToMore(item)