chore: add `batch.id` property (#17831)

I cannot tell you how many times I have temporarily added this code to
make it easier to debug some async stuff. I am extremely bored of doing
so. I'm just going to add it to `main` to save myself the annoyance. We
can remove it once everything async is stable
pull/17833/head
Rich Harris 5 days ago committed by GitHub
parent d4c78292ed
commit 15e1e73f9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -76,7 +76,12 @@ export let is_flushing_sync = false;
*/
export let collected_effects = null;
let uid = 1;
export class Batch {
// for debugging. TODO remove once async is stable
id = uid++;
/**
* The current values of any sources that are updated in this batch
* They keys of this map are identical to `this.#previous`

Loading…
Cancel
Save