Importing a client component makes the page a client component?
Answered
Tofugrass posted this in #help-forum
The 1st pic becomes a client component. The 2nd pic stays a server component.
When it's a client component, the page breaks when I export const metadata.
This only happens on this page of my app. LeagueHomePage has context providers in it. Any ideas?
When it's a client component, the page breaks when I export const metadata.
This only happens on this page of my app. LeagueHomePage has context providers in it. Any ideas?
Answered by Tofugrass
I found the answer: https://github.com/vercel/next.js/discussions/51050
1 Reply
I found the answer: https://github.com/vercel/next.js/discussions/51050
Answer