Skip to content

Commit 8f7cc5f

Browse files
committed
fetch next page
1 parent 483b9e9 commit 8f7cc5f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/routes/(app)/mangadex/list/(current-user)/SearchContent.svelte

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@
103103
onclick={() => {
104104
goto(
105105
route("/mangadex/list/[id]", {
106-
id:
107-
list.visibility == CustomListVisibility.Private
108-
? `private:${list.id}`
109-
: list.id
106+
id: list.visibility == CustomListVisibility.Private ? `private:${list.id}` : list.id
110107
})
111108
);
112109
}}
@@ -154,7 +151,14 @@
154151
/>
155152
{/if}
156153

157-
<div class="observer-trigger" bind:this={to_obserce_bind}>
154+
<!-- svelte-ignore a11y_no_static_element_interactions -->
155+
<div
156+
class="observer-trigger"
157+
bind:this={to_obserce_bind}
158+
onmouseenter={() => {
159+
query.fetchNextPage();
160+
}}
161+
>
158162
{#if isFetching}
159163
<Fetching />
160164
{:else if hasNext}

0 commit comments

Comments
 (0)