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

Method reset

packages/svelte/src/internal/client/dom/blocks/boundary.js:437–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435 var calling_on_error = false;
436
437 const reset = () => {
438 if (did_reset) {
439 w.svelte_boundary_reset_noop();
440 return;
441 }
442
443 did_reset = true;
444
445 if (calling_on_error) {
446 e.svelte_boundary_reset_onerror();
447 }
448
449 if (this.#failed_effect !== null) {
450 pause_effect(this.#failed_effect, () => {
451 this.#failed_effect = null;
452 });
453 }
454
455 this.#run(() => {
456 this.#render();
457 });
458 };
459
460 /** @param {unknown} transformed_error */
461 const handle_error_result = (transformed_error) => {

Callers 15

compileFunction · 0.80
compileModuleFunction · 0.80
parseFunction · 0.80
parseCssFunction · 0.80
inFunction · 0.80
animateFunction · 0.80
run_test_variantFunction · 0.80
before_testFunction · 0.80
testFunction · 0.80
testFunction · 0.80
test.tsFile · 0.80
Select_with_rich_contentFunction · 0.80

Calls 3

#runMethod · 0.95
#renderMethod · 0.95
pause_effectFunction · 0.90

Tested by 2

testFunction · 0.64
testFunction · 0.64