Hohai everyone, has anyone ever implemented optimi...
# prisma-whats-new
w
Hohai everyone, has anyone ever implemented optimistic updates with apollo-react/graphcool ?
h
In UI?
m
I think that’s more of an Apollo feature. Graphcool has no direct impact afaik.
w
@matic Of course ! @huv1k: The only use-case shown however, is when adding to a list. But there are no use-cases when trying to remove items from a list apart from this blog post https://medium.com/@j4mesjung/apollo-graphcool-optimistic-ui-for-delete-mutations-abc23f8aab18. The issue is that apollo-dev-tools aren’t working with React Native, so I can’t follow his advices >.>
you can read query and for example delete item with id or something
w
Yeah, but updates are different than optimistic updates.
update()
wait for the response to come back, and then updates your store without refetching the updated data.
Optimistic updates
are done even before your query is sent