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

Function skip_to_branch

packages/svelte/src/internal/client/dom/blocks/each.js:411–416  ·  view source on GitHub ↗

* Skip past any non-branch effects (which could be created with `createSubscriber`, for example) to find the next branch effect * @param {Effect | null} effect * @returns {Effect | null}

(effect)

Source from the content-addressed store, hash-verified

409 * @returns {Effect | null}
410 */
411function skip_to_branch(effect) {
412 while (effect !== null && (effect.f & BRANCH_EFFECT) === 0) {
413 effect = effect.next;
414 }
415 return effect;
416}
417
418/**
419 * Add, remove, or reorder items output by an each block as its input changes

Callers 1

reconcileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected