Closed tresabhi closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
themes-playground | ❌ Failed (Inspect) | Jul 7, 2024 1:53am |
Why is this PR created? What are you trying to achieve?
@vladmoroz I am working on implementing the intersection observer right into the skeleton component. This would be very useful in many of my chases where I lazy load components as soon as the skeleton is visible on screen on scroll. So, instead of setting up an intersection observer wrapper, I was thinking of adding an onIntersection
event directly to skeleton.
@tresabhi what does your design look like when things are loading? Do you granularly fetch data at the node level?
So far I'm not sure whether this makes sense in the Skeleton itself:
Description
Add intersection observer API directly into Skeleton. When
onIntersection
is passed, an observer is created. PassingintersectionOptions
is also supported.Testing steps
Figuring this out as we speak.
Relates issues / PRs
N/A