You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During page generation, it would be necessary for Island to provide a context, which can be detected by nested islands, to avoid rendering an additional client-side script and instead simply render the inner component.
Additionally, when building the client bundle, it would be necessary to replace Island with a no-op implementation, to avoid injecting an additional script to hydrate that inner component.
Further discussion is needed to understand the impact on style extraction, and whether these two changes are actually implementable.
The text was updated successfully, but these errors were encountered:
Description 📖
In some use cases it can be convenient to ignore client directives when an ancestor component is already an island.
An example from this thread:
and
Implementation Details ⚙️
During page generation, it would be necessary for
Island
toprovide
a context, which can be detected by nested islands, to avoid rendering an additional client-side script and instead simply render the inner component.Additionally, when building the client bundle, it would be necessary to replace
Island
with a no-op implementation, to avoid injecting an additional script to hydrate that inner component.Further discussion is needed to understand the impact on style extraction, and whether these two changes are actually implementable.
The text was updated successfully, but these errors were encountered: