headless ui support with react server components #1300
Replies: 4 comments 2 replies
-
Hello, any news on this? |
Beta Was this translation helpful? Give feedback.
-
Hey! Make sure that the file (or a parent) where you use Headless UI components is marked with |
Beta Was this translation helpful? Give feedback.
-
I'm not sure it will ever support RSC because it needs to keep track of the state of the ui using some javascript code |
Beta Was this translation helpful? Give feedback.
-
It's not enough, many Headless UI components are based on render-prop pattern which is incompatible with SC. Functions can't cross the boundary between Server and Client. The whole library has to be redesigned, unfortunately. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use headless UI with RSC & next JS v12.1.4 and getting this error:
are there plans to support RSC?
Beta Was this translation helpful? Give feedback.
All reactions