docs: warn about slots in server components (#18854)

This commit is contained in:
Alexander Lichter 2023-02-07 11:09:36 +01:00 committed by GitHub
parent f0ffc5daab
commit 65f26fb275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ Now you can register server-only components with the `.server` suffix and use th
</template>
```
::alert{type=warning}
Slots are not supported by server components in their current state of development.
::
::alert{type=info}
Please note that there is a known issue with using async code in a server component. It will lead to a hydration mismatch error on initial render. See [#18500](https://github.com/nuxt/nuxt/issues/18500#issuecomment-1403528142). Until there is a workaround, server-components must be synchronous.
::