Sashko Stubailo
1 min readJul 27, 2016

--

Optimistic updates work independently of updateQueries — if you use the default approach of just integrating the refetched data into the store, you can still use the optimistic response option. See here for more details: http://docs.apollostack.com/apollo-client/mutations.html#new-object-or-updated-fields

There’s an example in GitHunt: https://github.com/apollostack/GitHunt/blob/78cf0dc44243ac7715a2db57fd930f9e7a0422df/ui/CommentsPage.js#L193-L231 it’s not perfect yet, but we are working on it!

--

--

Sashko Stubailo

engineer at @stripe. previously open source eng manager at @apollographql and @meteorjs, https://github.com/stubailo