utily / smoothly

Web component library written with Stencil.
https://payfunc.com/open-source/smoothly
MIT License
1 stars 5 forks source link

smoothly-lazy failed to show content when refresh #860

Closed qijieye closed 2 weeks ago

qijieye commented 2 weeks ago

issue: event smoothlyLoadMore failed to emit when refresh the page it works differently in firefox and google chrome this.inView = (entries.find(entry => entry.target == this.element)?.intersectionRatio ?? 0) > 0 in chrome, this.inView is always false when you refresh a room that use lazy load setting up observer in connectedCallback seems to solve the issue

cloudflare-pages[bot] commented 2 weeks ago

Deploying smoothly with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d60dd8
Status: ✅  Deploy successful!
Preview URL: https://ffc46c77.smoothly.pages.dev
Branch Preview URL: https://lazy-load.smoothly.pages.dev

View logs