Skip to content
Discussion options

You must be logged in to vote

Interactivity and RSC are part of the rough edges.

It would seem that this is one of the cases, where you have to escape-hatch from RSC into 'use client', because the user selected dropdown value has to be used to fetch data.

Image if you could have a client component that just renders the dropdown and keeps track of the selected value, and that you could pass the selected value as props onto a server component. This is an interesting challenge, because you cannot have direct RSC children to a client component, rather you have to use composition, https://beta.nextjs.org/docs/rendering/server-and-client-components#importing-server-components-into-client-components.

Technically, either, yo…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@H-R-Wells2
Comment options

@prkagrawal
Comment options

@enzzzooo
Comment options

@NicolasGorga
Comment options

@lukeac123
Comment options

Answer selected by dapjeongneo
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet