unwaterfall for now

aaa
Dominic Gannaway 8 months ago
parent acb71be6e5
commit 8517eef6e7

@ -107,12 +107,6 @@ export function async_derived(fn) {
var restore = capture();
var unsuspend = suspend();
// Ensure the effect tree is paused/resume otherwise user-effects will
// not run correctly
if (effect.deps !== null) {
flush_boundary_micro_tasks();
}
try {
var v = await promise;

@ -51,6 +51,6 @@ export default test({
await tick();
assert.htmlEqual(target.innerHTML, '<p>86</p>');
assert.deepEqual(logs, ['should run', 42, 1, 84, 2, 86, 2]);
assert.deepEqual(logs, ['should run', 42, 1, 42, 2, 84, 2, 86, 2]);
}
});

Loading…
Cancel
Save