stellar
stellar copied to clipboard
Add `hydrate` directives
Feature request
Similar to Astro client directives or 11ty is-land implement some sort of hydrate directive(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.