apollographql / apollo-client-nextjs

Apollo Client support for the Next.js App Router
https://www.npmjs.com/package/@apollo/experimental-nextjs-app-support
MIT License
358 stars 25 forks source link

[idea] ensure that wrapped hooks are called instead of their upstream counterparts #206

Closed phryneas closed 2 months ago

phryneas commented 2 months ago

This would work with useFragment, useQuery, useSuspenseQuery and useBackgroundQuery since all of those call either watchQuery or watch, and we can overwrite these.

It does not work with useReadQuery - @jerelmiller do you have an idea how we could make it work there?

phryneas commented 2 months ago

Closing in favor of #216