docs: warn about nested islands (#28062)

This commit is contained in:
Julien Huang 2024-07-11 13:56:46 +02:00 committed by GitHub
parent 8f7815e96e
commit f8963f1dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.
:: ::