Merge branch 'main' into svelte-custom-renderer

pull/18058/head
Paolo Ricciuti 4 months ago committed by GitHub
commit 0031d8fbdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,6 +48,7 @@ import { DEV } from 'esm-env';
import { derived_safe_equal } from '../../reactivity/deriveds.js';
import { current_batch } from '../../reactivity/batch.js';
import * as e from '../../errors.js';
import { tag } from '../../dev/tracing.js';
import { push_renderer, renderer } from '../../custom-renderer/state.js';
@ -244,6 +245,10 @@ export function each(node, flags, get_collection, get_key, render_fn, fallback_f
return is_array(collection) ? collection : collection == null ? [] : array_from(collection);
});
if (DEV) {
tag(each_array, '{#each ...}');
}
/** @type {V[]} */
var array;

@ -95,6 +95,10 @@ export class SvelteDate extends Date {
return date_proto[method].apply(this, args);
});
if (DEV) {
tag(d, `SvelteDate.${method}()`);
}
this.#deriveds.set(method, d);
set_active_reaction(reaction);

Loading…
Cancel
Save