Stop polling the library catalog and keep the stage on thumbs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-29 20:15:03 -05:00
co-authored by Cursor
parent cfabfd37ee
commit a465dd68ec
7 changed files with 294 additions and 182 deletions
+1 -3
View File
@@ -802,11 +802,9 @@ function applyLibrary(data: unknown) {
}
async function loadLibrary() {
// First page of metadata only — grid paints immediately; full catalog follows for grouping/search
// First page of metadata only — never follow with a full light=1 catalog scan
const first = await $fetch<any>('/api/library?limit=50')
applyLibrary(first)
const data = await $fetch<any>('/api/library?light=1')
applyLibrary(data)
}
function folderChipCount(folder: LibraryFolder) {