[feat] infinite scroll on inventory

This commit is contained in:
Thad Miller
2026-07-16 16:08:51 -04:00
parent b3799a5318
commit 0858d3eaec

View File

@@ -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>
}