File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/internal/client/reactivity
tests/runtime-runes/samples/async-key Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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>' ) ;
You can’t perform that action at this time.
0 commit comments