v0.9.0
- improve TypeScript definitions for dispatched events
on:observe
:event.detail.isIntersecting
is aboolean
on:intersect
:event.detail.isIntersecting
can only betrue
<IntersectionObserver
on:observe={(e) => {
console.log(e.detail.isIntersecting); // boolean
}}
on:intersect={(e) => {
console.log(e.detail.isIntersecting); // true
}}
/>