Home / Function/ move_effect() — svelte Function Reference

move_effect() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  73cebc52_ca9e_1263_8a9a_afbc3e5f5b01["move_effect()"]
  1ae6fa4e_16ee_acdf_5e28_17eb0819fddb["effects.js"]
  73cebc52_ca9e_1263_8a9a_afbc3e5f5b01 -->|defined in| 1ae6fa4e_16ee_acdf_5e28_17eb0819fddb
  1faf4fc8_402e_578f_4e4f_7e097c01b149["pending()"]
  1faf4fc8_402e_578f_4e4f_7e097c01b149 -->|calls| 73cebc52_ca9e_1263_8a9a_afbc3e5f5b01
  4776c976_30bb_448d_921d_ee70a7fa0135["get_next_sibling()"]
  73cebc52_ca9e_1263_8a9a_afbc3e5f5b01 -->|calls| 4776c976_30bb_448d_921d_ee70a7fa0135
  style 73cebc52_ca9e_1263_8a9a_afbc3e5f5b01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/effects.js lines 703–717

export function move_effect(effect, fragment) {
	if (!effect.nodes) return;

	/** @type {TemplateNode | null} */
	var node = effect.nodes.start;
	var end = effect.nodes.end;

	while (node !== null) {
		/** @type {TemplateNode | null} */
		var next = node === end ? null : get_next_sibling(node);

		fragment.append(node);
		node = next;
	}
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free