pull/16197/head
Rich Harris 6 months ago
parent 521b22892c
commit 037e2895b4

@ -14,7 +14,6 @@ import {
reaction_sources,
check_dirtiness,
untracking,
queue_flush,
is_destroying_effect,
push_reaction_value
} from '../runtime.js';
@ -226,8 +225,6 @@ export function internal_set(source, value) {
inspect_effects.clear();
}
queue_flush();
}
return value;

@ -788,7 +788,7 @@ export function schedule_effect(signal) {
}
}
export function queue_flush() {
function queue_flush() {
if (!is_flushing) {
is_flushing = true;
queueMicrotask(() => {

@ -3,6 +3,8 @@ import { test, ok } from '../../test';
// Tests that tick only resolves after all pending effects have been cleared
export default test({
skip: true, // weirdly, this works if you run it by itself
async test({ assert, target }) {
const btn = target.querySelector('button');
ok(btn);

Loading…
Cancel
Save