Apollo GraphQL Question: How to handle invalid network requests for mutations with optimistic UI?
bdbch

bdbch @bdbchgg

About: Frontend Engineer @ Tiptap Building a modular and framework agnostic editor library for everyone. Likes cats and video games.

Location:
Berlin
Joined:
Jan 9, 2019

Apollo GraphQL Question: How to handle invalid network requests for mutations with optimistic UI?

Publish Date: Oct 9 '19
5 0

Hey fellow dev.to readers and writers! Today I have a quick question regarding Apollo GraphQL.

I'm currently working on an offline support feature so we can schedule mutations offline and show optimistic UI responses for them while the server does not respond.

That works fine while being offline, so everytime I submit a chat message, I get an immediate response from the Optimistic UI cache but if I go offline and send messages, I won't get any optimistic UI responses if the network requests are failing.

Am I missing something crucial on that concept?

Would love to hear from you!

Thanks!

Comments 0 total

    Add comment