-
Notifications
You must be signed in to change notification settings - Fork 3
Add hydrate directives #3
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestunder considerationA feature request is is being considered, but is not committed.A feature request is is being considered, but is not committed.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestunder considerationA feature request is is being considered, but is not committed.A feature request is is being considered, but is not committed.
Feature request
Similar to Astro client directives or 11ty
is-landimplement some sort ofhydratedirective(s) for hydrating Stellar components at different times/places –– not just page load.Potential directives:
hydrate:load– hydrate immediately on page load (default)hydrate:visible– hydrate once the component is visible in the viewporthydrate:media– hydrate based on a CSS media queryhydrate:interaction– hydrate when the component is interacted with (i.e. click, mousenter, etc)Open questions:
Should we implement this functionality at all? Could we instead create custom Astro client directives or just recommend that people use
is-land? More exploration/research should be done to see what the options are.