MCPcopy
hub / github.com/sveltejs/svelte / move_effect

Function move_effect

packages/svelte/src/internal/client/reactivity/effects.js:731–745  ·  view source on GitHub ↗
(effect, fragment)

Source from the content-addressed store, hash-verified

729 * @param {DocumentFragment} fragment
730 */
731export function move_effect(effect, fragment) {
732 if (!effect.nodes) return;
733
734 /** @type {TemplateNode | null} */
735 var node = effect.nodes.start;
736 var end = effect.nodes.end;
737
738 while (node !== null) {
739 /** @type {TemplateNode | null} */
740 var next = node === end ? null : get_next_sibling(node);
741
742 fragment.append(node);
743 node = next;
744 }
745}

Callers 3

on_destroyMethod · 0.90
destroy_effectsFunction · 0.90
#renderMethod · 0.90

Calls 2

get_next_siblingFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected