TimelinePanel: fix prefetching wrong direction
This commit is contained in:
parent
726abbe893
commit
f1197d6ba0
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ const TimelinePanel: Component<{
|
||||||
|
|
||||||
const tlEndObserver = new IntersectionObserver(() => {
|
const tlEndObserver = new IntersectionObserver(() => {
|
||||||
if (untrack(() => props.prefetch) && !snapshot.loading)
|
if (untrack(() => props.prefetch) && !snapshot.loading)
|
||||||
refetchTimeline("next");
|
refetchTimeline("prev");
|
||||||
});
|
});
|
||||||
|
|
||||||
onCleanup(() => tlEndObserver.disconnect());
|
onCleanup(() => tlEndObserver.disconnect());
|
||||||
|
|
Loading…
Reference in a new issue