MCPcopy
hub / github.com/sveltejs/svelte / #is_deferred

Method #is_deferred

packages/svelte/src/internal/client/reactivity/batch.js:217–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 }
216
217 #is_deferred() {
218 if (this.is_fork) return true;
219
220 for (const effect of this.#blocking_pending.keys()) {
221 var e = effect;
222 var skipped = false;
223
224 while (e.parent !== null) {
225 if (this.#skipped_branches.has(e)) {
226 skipped = true;
227 break;
228 }
229
230 e = e.parent;
231 }
232
233 if (!skipped) {
234 return true;
235 }
236 }
237
238 return false;
239 }
240
241 /**
242 * Add an effect to the #skipped_branches map and reset its children

Callers 1

#processMethod · 0.95

Calls 2

keysMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected