Skip to content

How to set page title and description if page is "use client" ? #50872

Discussion options

You must be logged in to vote

Yeah, refactoring seems be the way to go. Keep the page a server component, add the metadata there, and import the client component to it. Makes you miss how flexible the Head component was, but at the same time, it sort of makes sense to separate these... at least if the general design pattern is to push client components to the leaves of the React tree.

Replies: 19 comments 31 replies

Comment options

You must be logged in to vote
7 replies
@stefandev15
Comment options

@icyJoseph
Comment options

@ndroo
Comment options

@harryparkinson101
Comment options

@cupid20103
Comment options

Answer selected by anthonyhexium
Comment options

You must be logged in to vote
1 reply
@anarkrypto
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@sujan-s
Comment options

@ospira
Comment options

@jserrao
Comment options

@ospira
Comment options

@SukoonAdmin
Comment options

Comment options

You must be logged in to vote
5 replies
@sujan-s
Comment options

@anarkrypto
Comment options

@chemiadel
Comment options

@furkankaracan
Comment options

@TheCeloReis
Comment options

Comment options

You must be logged in to vote
1 reply
@audelqua
Comment options

Comment options

You must be logged in to vote
4 replies
@priyangsubanerjee
Comment options

@vishnupeas
Comment options

@DanielOttodev
Comment options

@m1dok
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hmtcelik
Comment options

Comment options

You must be logged in to vote
2 replies
@Mukhammadjon-Jalolov
Comment options

@columk1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@muditdev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Firevvork
Comment options

Comment options

You must be logged in to vote
3 replies
@sujan-s
Comment options

@maxpowernz
Comment options

@fivekiwi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet