Skip to content

Commit 2c0304f

Browse files
committed
get rid of logs
1 parent e1e04d0 commit 2c0304f

File tree

1 file changed

+4
-8
lines changed
  • packages/svelte/tests/runtime-runes/samples/async-resolve-stale

1 file changed

+4
-8
lines changed

packages/svelte/tests/runtime-runes/samples/async-resolve-stale/main.svelte

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,22 @@
77
const r = Promise.withResolvers();
88
99
if (prev || v === '') {
10-
console.log('hello', !!prev)
1110
Promise.resolve().then(async () => {
12-
console.log('count++')
1311
count++;
1412
r.resolve(v);
1513
await new Promise(r => setTimeout(r, 0));
1614
// TODO with a microtask like below it still throws a mutation error
1715
// await Promise.resolve();
1816
prev?.resolve();
19-
})
17+
});
2018
} else {
21-
console.log('other')
2219
prev = Promise.withResolvers();
2320
prev.promise.then(() => {
24-
console.log('other coun++')
2521
count++;
2622
r.resolve(v)
27-
})
23+
});
2824
}
29-
25+
3026
return r.promise;
3127
}
3228
@@ -35,4 +31,4 @@
3531
3632
<input bind:value />
3733
38-
{count} | {x}
34+
{count} | {x}

0 commit comments

Comments
 (0)