list page pt. 7 remove polling stuff

This commit is contained in:
2026-02-05 22:21:56 -08:00
parent 6c03916c2b
commit 03ce24d707

View File

@@ -44,25 +44,6 @@
void invalidate("clientdb:songs");
return;
}
let cancelled = false;
const waitForDbAndInvalidate = async () => {
for (let i = 0; i < 50; i++) {
if (cancelled) return;
if (clientDb) {
await invalidate("clientdb:songs");
return;
}
await new Promise((r) => setTimeout(r, 50));
}
};
void waitForDbAndInvalidate();
return () => {
cancelled = true;
};
});
function onSearch() {