merge-batches
Rich Harris 22 hours ago
parent fe693befb9
commit cb6e8244ae

@ -349,11 +349,14 @@ export class Batch {
this.#callbacks.clear();
if (batches.size > 1) {
const effects = new Set();
/**
* @param {Value} value
* @param {Set<Effect>} effects
*/
function get_async_effects(value, effects) {
const get_async_effects = (value, effects) => {
if (value.reactions !== null) {
for (const reaction of value.reactions) {
const flags = reaction.f;
@ -365,10 +368,7 @@ export class Batch {
}
}
}
}
if (batches.size > 1) {
const effects = new Set();
};
for (const source of this.current.keys()) {
// TODO do we also need block effects?

Loading…
Cancel
Save