Document that controling displayed value in Select is recommended for SSR #821
peteruithoven
started this conversation in
Documentation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation
Currently the Radix Select, when it's server side rendered, will briefly be shown empty until client side JavaScript fills in the value:
Radix.select.with.Next.trimmed.mp4
The solution is to control the value displayed in the trigger, so this can also be done server side, which is documented in the following section:
https://www.radix-ui.com/primitives/docs/components/select#controlling-the-value-displayed-in-the-trigger
I learned about this from the following suggestion in an issue.
radix-ui/primitives#1642 (comment)
I would like to suggest clarifying that this is needed for SSR, by for example adding to the end:
Relevant Radix Component(s)
Select
Beta Was this translation helpful? Give feedback.
All reactions