mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: warn about slots in server components (#18854)
This commit is contained in:
parent
f0ffc5daab
commit
65f26fb275
@ -276,6 +276,10 @@ Now you can register server-only components with the `.server` suffix and use th
|
|||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
::alert{type=warning}
|
||||||
|
Slots are not supported by server components in their current state of development.
|
||||||
|
::
|
||||||
|
|
||||||
::alert{type=info}
|
::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.
|
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.
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user