Skip to content

Commit

Permalink
fix(composable): Remove immediate result logic (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishitatsuyuki committed Oct 5, 2022
1 parent 6c07a47 commit fc98307
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/vue-apollo-composable/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc98307

Please sign in to comment.