[feat] infinite scroll on inventory
This commit is contained in:
@@ -137,4 +137,16 @@ console.log(`totalHits: ${totalHits}`);
|
||||
</div>
|
||||
);
|
||||
|
||||
})
|
||||
})}
|
||||
{start + 20 < totalHits &&
|
||||
<div
|
||||
hx-post="/partials/inventory-cards"
|
||||
hx-trigger="revealed"
|
||||
hx-vals={JSON.stringify({ start: start + 20, catalog, q: query })}
|
||||
hx-target="#gridView"
|
||||
hx-swap="beforeend"
|
||||
hx-on--after-request="this.remove()"
|
||||
>
|
||||
Loading...
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user