TimelinePanel: fix prefetching wrong direction

This commit is contained in:
thislight 2024-10-29 14:19:27 +08:00
parent 726abbe893
commit f1197d6ba0
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -39,7 +39,7 @@ const TimelinePanel: Component<{
const tlEndObserver = new IntersectionObserver(() => {
if (untrack(() => props.prefetch) && !snapshot.loading)
refetchTimeline("next");
refetchTimeline("prev");
});
onCleanup(() => tlEndObserver.disconnect());