Closed anilahsu closed 5 months ago
Good catch - it seems that the React 19 types might be more permissive here than the React 18 types, so I didn't notice.
Could you please give this version from #313 a try and report back if it fixes the problem?
npm i @apollo/experimental-nextjs-app-support@0.0.0-commit-release.0.1718009266.650f886
npm i @apollo/client-react-streaming@0.0.0-commit-release.0.1718009266.650f886
@phryneas Thanks! It works and fixes the type issue!
Released as 0.11.1. Thank you for the report!
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
I have registered Apollo Client and exported the
PreloadQuery
in aTypeScript
file as follows:I then used the PreloadQuery in a Next.js 14 server component as shown below:
However, I encountered the following error:
Environment