Home / Function/ resume_children() — svelte Function Reference

resume_children() — svelte Function Reference

Architecture documentation for the resume_children() function in effects.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac["resume_children()"]
  1ae6fa4e_16ee_acdf_5e28_17eb0819fddb["effects.js"]
  6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac -->|defined in| 1ae6fa4e_16ee_acdf_5e28_17eb0819fddb
  9c654195_2948_bf49_8faa_cded59a1e3b9["resume_effect()"]
  9c654195_2948_bf49_8faa_cded59a1e3b9 -->|calls| 6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac
  6479f832_c1d7_7636_b658_b3f9c70d9af0["set_signal_status()"]
  6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac -->|calls| 6479f832_c1d7_7636_b658_b3f9c70d9af0
  e3c23578_a277_4ec0_656f_1000b1fa503b["schedule_effect()"]
  6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac -->|calls| e3c23578_a277_4ec0_656f_1000b1fa503b
  style 6f8f529a_4ea8_0edd_6a63_9acc29cbd4ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/effects.js lines 659–693

function resume_children(effect, local) {
	if ((effect.f & INERT) === 0) return;
	effect.f ^= INERT;

	// If a dependency of this effect changed while it was paused,
	// schedule the effect to update. we don't use `is_dirty`
	// here because we don't want to eagerly recompute a derived like
	// `{#if foo}{foo.bar()}{/if}` if `foo` is now `undefined
	if ((effect.f & CLEAN) === 0) {
		set_signal_status(effect, DIRTY);
		schedule_effect(effect);
	}

	var child = effect.first;

	while (child !== null) {
		var sibling = child.next;
		var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0;
		// TODO we don't need to call resume_children recursively with a linked list in place
		// it's slightly more involved though as we have to account for `transparent` changing
		// through the tree.
		resume_children(child, transparent ? local : false);
		child = sibling;
	}

	var t = effect.nodes && effect.nodes.t;

	if (t !== null) {
		for (const transition of t) {
			if (transition.is_global || local) {
				transition.in();
			}
		}
	}
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does resume_children() do?
resume_children() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/effects.js.
Where is resume_children() defined?
resume_children() is defined in packages/svelte/src/internal/client/reactivity/effects.js at line 659.
What does resume_children() call?
resume_children() calls 2 function(s): schedule_effect, set_signal_status.
What calls resume_children()?
resume_children() is called by 1 function(s): resume_effect.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free