0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages
Mads Erik Forberg 769826edbd
feat: support setting rootMargin for client:visible (#9363)
* feat: support setting rootMargin for `client:visible`

This support adding optional `rootMargin` to the `IntersectionObserver` options.

This gives the developer the optional choice to hydrate a bit before the astro-island enters the viewport.

* chore: update type for client:visible

* chore: added changeset

* chore: update types

* fix: check if value is string

* Update stupid-peas-juggle.md

* fix: update .changeset/stupid-peas-juggle.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:20:07 +00:00
..
astro feat: support setting rootMargin for client:visible (#9363) 2024-01-03 13:20:07 +00:00
astro-prism
astro-rss [ci] release (#9340) 2023-12-06 15:09:30 -05:00
create-astro Move create-astro async tasks to end (#9470) 2024-01-03 13:06:57 +00:00
integrations [ci] release (#9541) 2024-01-02 10:26:33 -05:00
internal-helpers
markdown/remark [ci] release (#9365) 2023-12-11 11:57:19 +00:00
telemetry
underscore-redirects
upgrade [ci] release (#9541) 2024-01-02 10:26:33 -05:00