Closed clyncha closed 4 months ago
Hey @clyncha 👋
Sorry to hear you're experiencing this! Would you be able to provide both the @apollo/client
and @apollo/experimental-nextjs-app-support
versions you're using?
@clyncha ah wait, I noticed in your video that your client
is a Promise<NextSSRApolloClient>
, which is likely the cause. This should be NextSSRApolloClient
itself. How are you setting up your client in your code?
Here is how I am setting up my client
Thank you for responding so promptly :)
Here is where I am using it instead of a client component
@clyncha can you remove that async
keyword on your makeClient
function? That should make the error go away. Doesn't look like you need it anyways 🙂
@clyncha can you remove that
async
keyword on yourmakeClient
function? That should make the error go away. Doesn't look like you need it anyways 🙂
Oh wow I feel silly now.. that worked! Thank you
You're welcome! Sometimes it helps to have an extra pair of eyes 😆. Glad to hear it worked! I'll go ahead and close this issue. Feel free to reach out if you need additional help!
Code in the getSuspenceCache is attempting to access defaultOptions.react but defaultOptions is undefined.
https://github.com/apollographql/apollo-client-nextjs/assets/89420677/da9a85c9-53cb-4755-9736-82c728358acb
I am seeing a similar issue when I swap out useSuspenseQuery for useQuery. It seems to be having an issue reading watchQuery