docs: warn about nested islands (#28062)

This commit is contained in:
Julien Huang 2024-07-11 13:56:46 +02:00 committed by Daniel Roe
parent 7f7136c3d3
commit 057cfa99bf
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -303,6 +303,10 @@ Server-only components use [`<NuxtIsland>`](/docs/api/components/nuxt-island) un
Server components (and islands) must have a single root element. (HTML comments are considered elements as well.) Server components (and islands) must have a single root element. (HTML comments are considered elements as well.)
:: ::
::alert{type=warning}
Be careful when nesting islands within other islands as each island adds some extra overhead.
::
::alert{type=warning} ::alert{type=warning}
Most features for server-only components and island components, such as slots and client components, are only available for single file components. Most features for server-only components and island components, such as slots and client components, are only available for single file components.
:: ::