Home / Function/ effect_in_teardown() — svelte Function Reference

effect_in_teardown() — svelte Function Reference

Architecture documentation for the effect_in_teardown() function in errors.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  aa8d04cb_164f_1fb7_fcf5_b5fb5c50f664["effect_in_teardown()"]
  ff387d97_d6d2_81e0_e731_656552709d27["errors.js"]
  aa8d04cb_164f_1fb7_fcf5_b5fb5c50f664 -->|defined in| ff387d97_d6d2_81e0_e731_656552709d27
  b78cad2e_34cc_9fa8_80d7_78a1f69d3539["validate_effect()"]
  b78cad2e_34cc_9fa8_80d7_78a1f69d3539 -->|calls| aa8d04cb_164f_1fb7_fcf5_b5fb5c50f664
  style aa8d04cb_164f_1fb7_fcf5_b5fb5c50f664 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/errors.js lines 155–165

export function effect_in_teardown(rune) {
	if (DEV) {
		const error = new Error(`effect_in_teardown\n\`${rune}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);

		error.name = 'Svelte error';

		throw error;
	} else {
		throw new Error(`https://svelte.dev/e/effect_in_teardown`);
	}
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does effect_in_teardown() do?
effect_in_teardown() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/errors.js.
Where is effect_in_teardown() defined?
effect_in_teardown() is defined in packages/svelte/src/internal/client/errors.js at line 155.
What calls effect_in_teardown()?
effect_in_teardown() is called by 1 function(s): validate_effect.

Analyze Your Own Codebase

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

Try Supermodel Free