Fix article get read when navigation to admin area.

This commit is contained in:
2026-06-19 16:41:16 +02:00
parent dfc2e29e36
commit 7a24980101
3 changed files with 16 additions and 2 deletions
+8
View File
@@ -268,6 +268,13 @@ function handleIntersection(entries, topbarHeight = 0) {
})
}
function disconnectObserver() {
if (observer) {
observer.disconnect()
observer = null
}
}
function setInitialLoad(value) {
initialLoad = value
}
@@ -375,6 +382,7 @@ export function useFeeds() {
markAllRead,
showMessageForXSeconds,
setupIntersectionObserver,
disconnectObserver,
setInitialLoad,
handleIntersection,
}