mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 10:27:15 +00:00
docs: explain better ?
This commit is contained in:
parent
263b5e0066
commit
6b34fd83a8
@ -319,11 +319,11 @@ Server-only components use `<NuxtIsland>` under the hood, meaning that `lazy` pr
|
||||
When rendering a server-only or island component, `<NuxtIsland>` makes a HTTP request to GET a `NuxtIslandResponse`.
|
||||
|
||||
This means:
|
||||
- You can't access to the island context from your SSR app and you can't access to your SSR app context from the island component. Both are different context.
|
||||
- A new Vue app will be created server-side to create the `NuxtIslandResponse`.
|
||||
- You can't access to the island app context from your SSR app and you can't access to your SSR app context from the island component. Both are different context.
|
||||
- Plugins will be ran for the island Vue app except those marked with `env.island: false` on an object plugin.
|
||||
|
||||
You can access to an island context during the island component rendering through `nuxtApp.ssrContext.islandContext`.
|
||||
You can access to an island context within an island component through `nuxtApp.ssrContext.islandContext`.
|
||||
|
||||
::alert{type=info}
|
||||
Slots can be interactive and are wrapped within a `<div>` with `display: contents;`
|
||||
|
Loading…
Reference in New Issue
Block a user