We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0510be8 commit 695bb66Copy full SHA for 695bb66
apps/desktop/src/routes/target-select-overlay.tsx
@@ -444,6 +444,7 @@ function Inner() {
444
445
onMount(() => {
446
let processing = false;
447
+ let raf: number;
448
449
const loop = async () => {
450
const target = targetState();
@@ -471,9 +472,9 @@ function Inner() {
471
472
processing = false;
473
}
474
- requestAnimationFrame(loop);
475
+ raf = requestAnimationFrame(loop);
476
};
- const raf = requestAnimationFrame(loop);
477
478
onCleanup(() => cancelAnimationFrame(raf));
479
});
480
0 commit comments