You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The asChild API doesn't work reliably with Server Components. It somehow works to some extent, but when children are declared with async or have a call to use(promise) internally, then the rendering fails.
Bug report
Current Behavior
The
asChild
API doesn't work reliably with Server Components. It somehow works to some extent, but when children are declared withasync
or have a call touse(promise)
internally, then the rendering fails.Expected behavior
asChild
should work reliably everywhere.Reproducible example
use(promise)
Suggested solution
https://x.com/souporserious/status/1753859984344121754
Your environment
Please see the StackBlitz examples.
The text was updated successfully, but these errors were encountered: