menu
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 Platform
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
Posts
Members
Info

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.

thumbsup
0
message-simple
3

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鈥

thumbsup
0
message-simple
5

Automatic caching after mutation

Manually writing cache.writeQuery after mutation. There is no way to do this automatically? https://www.apollographql.com/docs/react/data/mutations/#making-all-other-cache-updates

thumbsup
0
message-simple
0

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?

thumbsup
0
message-simple
4

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鈥

thumbsup
1
message-simple
2

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鈥

thumbsup
0
message-simple
0

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鈥

thumbsup
1
message-simple
15

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鈥

thumbsup
1
message-simple
10

Lazy Load Local Resolvers

Can I lazily add resolvers to my client? something like:

thumbsup
0
message-simple
1

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鈥

thumbsup
0
message-simple
2