Home / Function/ pause_children() — svelte Function Reference

pause_children() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c99e6fc8_1796_50f2_d30f_23492c8cd8dd["pause_children()"]
  1ae6fa4e_16ee_acdf_5e28_17eb0819fddb["effects.js"]
  c99e6fc8_1796_50f2_d30f_23492c8cd8dd -->|defined in| 1ae6fa4e_16ee_acdf_5e28_17eb0819fddb
  27507f0c_dcab_c3a5_2ce6_5e4b1ef9df3d["pause_effect()"]
  27507f0c_dcab_c3a5_2ce6_5e4b1ef9df3d -->|calls| c99e6fc8_1796_50f2_d30f_23492c8cd8dd
  ea5280ff_3b87_42ee_3823_3570b76a5779["push()"]
  c99e6fc8_1796_50f2_d30f_23492c8cd8dd -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779
  style c99e6fc8_1796_50f2_d30f_23492c8cd8dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/effects.js lines 614–644

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

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

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

	var child = effect.first;

	while (child !== null) {
		var sibling = child.next;
		var transparent =
			(child.f & EFFECT_TRANSPARENT) !== 0 ||
			// If this is a branch effect without a block effect parent,
			// it means the parent block effect was pruned. In that case,
			// transparency information was transferred to the branch effect.
			((child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0);
		// TODO we don't need to call pause_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.
		pause_children(child, transitions, transparent ? local : false);
		child = sibling;
	}
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does pause_children() do?
pause_children() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/effects.js.
Where is pause_children() defined?
pause_children() is defined in packages/svelte/src/internal/client/reactivity/effects.js at line 614.
What does pause_children() call?
pause_children() calls 1 function(s): push.
What calls pause_children()?
pause_children() is called by 1 function(s): pause_effect.

Analyze Your Own Codebase

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

Try Supermodel Free