You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I've tried following the code example shown in the readme but using my own api and queries etc. In the example of atomsWithQuery it says that the: () => client parameter is optional, however removing that parameter causes app to crash and gives this error: Uncaught ApolloError: Response not successful: Received status code 404
From the docs it looks like the second parameter gets a default client like: getClient: (get: Getter) => ApolloClient<any> = (get) => get(clientAtom)
But I can't see an example of how to set it up so that the default clientAtom has our graphql client
The text was updated successfully, but these errors were encountered:
Hey, I've tried following the code example shown in the readme but using my own api and queries etc. In the example of
atomsWithQuery
it says that the:() => client
parameter is optional, however removing that parameter causes app to crash and gives this error:Uncaught ApolloError: Response not successful: Received status code 404
From the docs it looks like the second parameter gets a default client like:
getClient: (get: Getter) => ApolloClient<any> = (get) => get(clientAtom)
But I can't see an example of how to set it up so that the default clientAtom has our graphql client
The text was updated successfully, but these errors were encountered: