menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

optimisticResponse in useMutation

March 24, 2021 at 5:09pm
The Apollo community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

optimisticResponse in useMutation

March 24, 2021 at 5:09pm
Has anyone else found that adding optimisticResponse to useMutation causes all queries with 'network-only' to be refetched? If I remove optimisticResponse, it doesn't happen.

March 24, 2021 at 5:16pm
I suppose that makes sense, if you use optimisticResponse your are hopping that that particular mutation resolves the way you are planning but it needs to refetch it from the server to check if everything went as planned.
  • reply
  • like