pull/9826/head
Rich Harris 3 years ago
parent ef5cbb4d04
commit 3f4cc1d1a2

@ -256,7 +256,7 @@ export function client_component(source, analysis, options) {
properties.push(
b.get(key, [b.return(b.call(b.id(name)))]),
b.set(key, [b.stmt(b.call(b.id(name), b.id('$$value')))])
b.set(key, [b.stmt(b.call(b.id(name), b.id('$$value'))), b.stmt(b.call('$.flushSync'))])
);
}
}

@ -1,7 +1,7 @@
import { test } from '../../test';
/** @type {string[]} */
const calls = [];
let calls = [];
export default test({
get props() {
@ -9,7 +9,7 @@ export default test({
},
before_test() {
calls.length = 0;
calls = [];
},
async test({ assert, component, target, window }) {

Loading…
Cancel
Save