Posts
Members
Info
Accessing parent context Apollo Context
Hello Apollo fans! I've got quick I've been struggling with for about a week now. Let's say I have to React Context Providers: <ApolloProvider> and <AuthProvider>. I want all of the child contexts (<AuthProvider> in this case) to have assess to Apollo, like this: …
0
1
Refetch cache problem
How to remove refetch cache data after call useQuery? I am using InMemoryCache typePolicies.
0
0
useLazyQuery executed twice
Hello I am working on one React project, and for one of the components I am calling useLazyQuery in useEffect hook with an empty dependencies array. When the query gets executed i am returning the child component and inside the child component i have one useMutation hook which i…
0
0
Mocking `useLazyQuery` doesn't work
I'm mocking all the queries for testing purposes, now I have a lazy query, it works with useQuery, but not with useLazyQuery. Did anyone manage to do it?
0
0
useQuery returns nothing if loading time more than 10 seconds
Hi everyone, could someone help me with this issue? https://github.com/apollographql/apollo-client/issues/7772
0
0
Possible caching issues on page refresh
We use graphql to run our queries in cojunction with ag-grid to store and display results, also using queryParams to keep track of.. well, query params in the url. I'm running into issues where if I refresh the page when I'm on page 3, for exaple, of my table. The page will…
0
0
No re-render after cache update
I upgraded to apollo-client 3 and am using useQuery/useMutation. With a example setup of this And calling this mutation in the same view where I fetched the the other data. …
0
5
Best Practices around Local State Updates
I have a few specific questions here, but I'm really just trying to reevaluate my usage of Apollo Client and figure out what true best practices are instead of just using the approach that has been tediously working for me in the past. The central scenario I'd like to figure out…
0
0
Problem with upload file
Hi guys, I face with a difficult problem. I am using Apollo Client and @apollo/client. I use mutation function to upload a file. Obviously, the apollo server can get the request, but the file (type Upload!) always be empty object {}. Can anyone here help me solve it? The problem…
0
0