list page pt. 7 remove polling stuff
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user