slow down, idb

This commit is contained in:
Martti Malmi 2023-08-18 00:16:39 +03:00
parent 5ead29bc03
commit 4b51dcf604

View File

@ -32,7 +32,8 @@ const INITIAL_EVENT_LOAD_LIMIT = 5000;
const db = new MyDexie();
const handleEvent = (event: Event & { id: string }) => {
setTimeout(() => {
/*😆*/
requestAnimationFrame(() => {
Events.handle(event, false, false);
});
};