-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make ApolloNextAppProvider usable out of the box #395
Comments
We need you to create that additional file with "use client" on top so it is considered a client component by Next.js - you also could not pass These are not constraints that we are adding, but constraints added by React and your Framework - there's no way around that. |
Why can’t this file be in the lib already? Just accept client prop and children, seems pretty simple to me. |
Because we cannot write |
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 to create a client component that forwards the children to it, I can't just use it directly. I think it should be usable in root layout as is without having to create an extra component
This gives an error
⨯ Error: Unsupported Server Component type: undefined
The text was updated successfully, but these errors were encountered: