Skip to content

Commit bfa2f3b

Browse files
committed
wip
1 parent 5796edf commit bfa2f3b

File tree

2 files changed

+2
-1
lines changed
  • packages/svelte

2 files changed

+2
-1
lines changed

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export function set(source, value) {
153153
!untracking &&
154154
is_runes() &&
155155
(active_reaction.f & (DERIVED | BLOCK_EFFECT)) !== 0 &&
156-
(active_reaction.f & (ASYNC_DERIVED)) === 0 &&
157156
// If the source was created locally within the current derived, then
158157
// we allow the mutation.
159158
(derived_sources === null || !derived_sources.includes(source))

packages/svelte/tests/runtime-runes/samples/async-key/_config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export default test({
3737
assert.equal(target.querySelector('h1'), h1);
3838

3939
d = deferred();
40+
// TODO context leaks without this?
41+
await Promise.resolve();
4042
component.promise = d.promise;
4143
await tick();
4244
assert.htmlEqual(target.innerHTML, '<h1>hello</h1>');

0 commit comments

Comments
 (0)