async-svelte-map
Rich Harris 7 months ago
parent b9eefe4095
commit a6a548c6f6

@ -524,14 +524,8 @@ export class Batch {
} }
apply() { apply() {
if (!batches.has(this)) {
console.warn('wtf', this.id);
}
if (!async_mode_flag || (!this.is_fork && batches.size === 1)) return; if (!async_mode_flag || (!this.is_fork && batches.size === 1)) return;
console.log(this.id, batches.size);
// if there are multiple batches, we are 'time travelling' — // if there are multiple batches, we are 'time travelling' —
// we need to override values with the ones in this batch... // we need to override values with the ones in this batch...
batch_values = new Map(this.current); batch_values = new Map(this.current);
@ -557,8 +551,6 @@ export class Batch {
} }
} }
console.log(batch.id, { coincides });
if (!coincides) { if (!coincides) {
for (const [source, previous] of batch.previous) { for (const [source, previous] of batch.previous) {
if (!batch_values.has(source)) { if (!batch_values.has(source)) {

Loading…
Cancel
Save