You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RFC that updates the client visible directive's default behavior to track actual visibility, while also leaving the option for devs to opt-out and return to the older intersection-only behavior.
This RFC ensures, that components with client:visible only hydrate when they are actually visible (in all the senses of the word), e.g. meaning if the component is obscured by another element then Astro won't load it, or if the component is made invisible via either opacity or visibility, then the component won't hydrate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
RFC that updates the client visible directive's default behavior to track actual visibility, while also leaving the option for devs to opt-out and return to the older
intersection-only
behavior.This RFC ensures, that components with
client:visible
only hydrate when they are actually visible (in all the senses of the word), e.g. meaning if the component is obscured by another element then Astro won't load it, or if the component is made invisible via either opacity or visibility, then the component won't hydrate.Links
Beta Was this translation helpful? Give feedback.
All reactions