# All channels
Sachin D. Shinde@sachin-shinde
Handling errors from mutation with an optimistic response
Sorry if this is a stupid question.. or it's been asked. But i'm a little confused on how to handle errors from a mutation with an optimistic response. Since the mutation returns the optimistic response.. i'm not sure how to catch the error after the server finally receives it.
apollo-cache-persist and Local State: Recalculate specific client fields?
Let's say I've got a query Let's say isOpenNow queries some API by address and returns whether the business is open now or not (and due to Coronavirus I sincerely hope everyone is working from home ;)) As a user, I want this field to always be fresh. I don't want the returned…
Client has typeDefs, but no `Docs` in GraphiQL
The Apollo local-state docs say that if I pass a typeDefs object to my client when I create it, I should be able to view schema docs in the dev tools. whelp: As you can see from the screenshot, I have typeDefs, but no dev-tools GraphiQL Docs section. Am I doing it wrong?
Default Local State with Apollo Client 2.6
In Apollo Client 2.6, apollo-link-state is integrated by default. In the docs for link state, it shows how to initialize defaults if you are using ApolloClient from apollo-boost or if you are adding the link state link yourself. However, neither of those methods work for the…
ApolloClient client.clearStore() isn't triggering re-render
Hey everyone! Still looking for an answer to this post: https://spectrum.chat/apollo/apollo-client/apolloclient-client-clearstore-isnt-triggering-re-render~0ade59ee-017d-4366-ad6d-f8715f5cfe8e Figured this might be a more appropriate channel and get more feedback. The main…
Handling not yet available local state
Hey folks! I am trying to use a local @client field as a variable (https://www.apollographql.com/docs/react/data/local-state/#using-client-fields-as-variables) in a couple of sibling components. I've got two components, side-by-side, one is a List and another Detail (classic…
Rerender on local cache change
The React should automatically rerender the component that requests data from the local cache when updating this data from another component, right? In one component, I use writeData, which records data when the input changes. In another component, I use graphql HOC that queries…
Updating the cache of filtered items
Hi guys, there are many paginated items, these items can be filtered by status (and other attributes too eg.: createdAt) which leads to harder cache update. Unfortunately was unable to find any examples online that are this "complex" however it doesn't sound THAT complex, I'd…