Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Vue islands to be nested #165

Open
ElMassimo opened this issue Jul 20, 2022 · 0 comments
Open

Allow Vue islands to be nested #165

ElMassimo opened this issue Jul 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ElMassimo
Copy link
Owner

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:

  - EventContent
     - EventDetails (client:load)
         - NewsSubscription
             - EmailSubscription (client:load)

and

  - EventsContent
     - NewsSubscription
         - EmailSubscription (client:load)

Implementation Details ⚙️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant