chore: deactivate batch after async derived resolves (#17865)

Extracted from #17805. Similar to #17864, I'm not aware of any bugs
resulting from this, but the fact that we're setting `current_batch`
before calling `internal_set` and then not _unsetting_ `current_batch`
feels like something that could potentially bite us.
pull/17873/head
Rich Harris 5 months ago committed by GitHub
parent 2a1f5ada13
commit 3df2645451
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -196,6 +196,8 @@ export function async_derived(fn, label, location) {
if (decrement_pending) {
decrement_pending();
}
batch.deactivate();
};
d.promise.then(handler, (e) => handler(null, e || 'unknown'));

Loading…
Cancel
Save