drive-by tweaks

pull/18326/head
Rich Harris 3 days ago
parent 608165844a
commit ad9b5bbfcd

@ -387,7 +387,9 @@ export function render_effect(fn, flags = 0) {
*/
export function template_effect(fn, sync = [], async = [], blockers = []) {
flatten(blockers, sync, async, (values) => {
create_effect(RENDER_EFFECT, () => fn(...values.map(get)));
create_effect(RENDER_EFFECT, () => {
fn(...values.map(get))
});
});
}
@ -518,7 +520,7 @@ export function destroy_effect(effect, remove_dom = true) {
removed = true;
}
set_signal_status(effect, DESTROYING);
effect.f |= DESTROYING;
destroy_effect_children(effect, remove_dom && !removed);
remove_reactions(effect, 0);

Loading…
Cancel
Save