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

Add hydrate directives #3

Open
hawkticehurst opened this issue Oct 22, 2023 · 0 comments
Open

Add hydrate directives #3

hawkticehurst opened this issue Oct 22, 2023 · 0 comments
Labels
enhancement New feature or request under consideration A feature request is is being considered, but is not committed.

Comments

@hawkticehurst
Copy link
Owner

hawkticehurst commented Oct 22, 2023

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 viewport
  • hydrate:media – hydrate based on a CSS media query
  • hydrate: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.

@hawkticehurst hawkticehurst added enhancement New feature or request under consideration A feature request is is being considered, but is not committed. labels Oct 22, 2023
@hawkticehurst hawkticehurst changed the title Add client directives Add hydrate directives Oct 22, 2023
@hawkticehurst hawkticehurst changed the title Add hydrate directives Add hydrate:name directives Oct 22, 2023
@hawkticehurst hawkticehurst changed the title Add hydrate:name directives Add hydrate directives Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request under consideration A feature request is is being considered, but is not committed.
Projects
None yet
Development

No branches or pull requests

1 participant