fix infinite scroll reload

This commit is contained in:
Pete Matsyburka committed 2026-09-23 11:00:17 +03:00
1 parent 05fa75f9a2
commit ef28b80589
4 files changed
+15 -12

No files matched your search

+1 -5
View File
@@ -2,11 +2,7 @@ import { renderStreamMessage } from '@hotwired/turbo'
export default class extends HTMLElement {
connectedCallback () {
if (!this.dataset.src) {
this.remove()
return
}
if (!this.dataset.src) return
this.observer = new IntersectionObserver((entries) => {
if (entries.some((entry) => entry.isIntersecting)) {