I need to write dedicated hook useMutation with onCompleted and parameter onMutationCompleted. In file it uses like: I don't know how to put onCom ...
I need to write dedicated hook useMutation with onCompleted and parameter onMutationCompleted. In file it uses like: I don't know how to put onCom ...
I'm working with react and apollo client. i'm get confusing error and i can't find exactly the problem. i have the code. i got an error. i hope t ...
I would like to know if the refetch function that the useQuery hook returns invalidates the cache, since I need to retrieve the newest data from the r ...
Apollo Client can't fetch data, because "Failed to parse source map from invariant.ts".I saw similar problem on forum, but it's outdated. ...
I have an onCompleted that I am trying to test from my useMutation, I am using jest and react-testing-library. This is the piece of code I am trying t ...
The API resource I am trying to pull from expects a GET request. How can I use the useQuery hook to send a GET request, it seems like it only ever sen ...
I am using apollo-graphql in my react project and i am getting error of Invalid hook call. Hooks can only be called inside of the body of a functi ...
My root component is already wrapped with an ApolloProvider tag, but the error message tells me it is not. Error Message Problem is my root compon ...
I'm facing a issue with query in GRAPHQL Here is my query I'm using react-hooks. import { useQuery } from "@apollo/react-hooks"; The error i'm ...
I'm trying to create a custom Apollo Client mutation hook in a TypeScript project in the following shape: Everything seems fine, but when I import ...
How do I buffer streamed data with react-hooks (useEffect) to be able to update another component at once to avoid many rerenderings? Following infor ...
In the update hook of useMutation, Apollo's documentation recommends using writeFragment to get an internal reference to a newly added object. I find ...
I'm trying to to call useLazyQuery after submitting form/onClick, but for some reason I'm always getting undefined. Here is how I have defined my hook ...
Im new to graphql so I decided to follow this guide. However I got an error when querying (step 7) : Here is the component: import React, { useSt ...
The Apollo GraphQL team says that readQuery and writeQuery are good for 95% of the use cases. I am using useMutation and update and want to remove an ...
I use react-apollo useLazyQuery hook. My goal to use it in fetch more button click. However, when I try to use it the fetchMore function is undefined. ...
I have a page items/[id] for creating and editing items. I use -1 as item id for new items to differentiate create and edit mode. It is a functional c ...
I am currently working on a project which requires me to make multiple queries/mutations. I tried setting up my apollo client with BatchHttpLink and I ...
Using Apollo Client I see how I can skip a query based on props like shown here https://ladwhocodes.com/graphql/skip-a-graphql-query-based-on-conditio ...
I have a screen where I fetch some data from Hasura. I am using something like this: In screen1.js I have a button that navigates to screen2.js. An ...