Home / Function/ user_pre_effect() — svelte Function Reference

user_pre_effect() — svelte Function Reference

Architecture documentation for the user_pre_effect() function in effects.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  b4142a92_fb70_a0da_ca48_719b2f2398ad["user_pre_effect()"]
  1ae6fa4e_16ee_acdf_5e28_17eb0819fddb["effects.js"]
  b4142a92_fb70_a0da_ca48_719b2f2398ad -->|defined in| 1ae6fa4e_16ee_acdf_5e28_17eb0819fddb
  c995b8b0_a66f_3859_49e4_870c64e34e8a["passive()"]
  c995b8b0_a66f_3859_49e4_870c64e34e8a -->|calls| b4142a92_fb70_a0da_ca48_719b2f2398ad
  4b8f0d7c_b6aa_c430_0e05_d9063aab1da4["nonpassive()"]
  4b8f0d7c_b6aa_c430_0e05_d9063aab1da4 -->|calls| b4142a92_fb70_a0da_ca48_719b2f2398ad
  2bef4c90_800a_61a0_724e_32f34a823482["init()"]
  2bef4c90_800a_61a0_724e_32f34a823482 -->|calls| b4142a92_fb70_a0da_ca48_719b2f2398ad
  aabca1eb_a83c_814e_94aa_b3d3f9b9201c["run()"]
  aabca1eb_a83c_814e_94aa_b3d3f9b9201c -->|calls| b4142a92_fb70_a0da_ca48_719b2f2398ad
  b78cad2e_34cc_9fa8_80d7_78a1f69d3539["validate_effect()"]
  b4142a92_fb70_a0da_ca48_719b2f2398ad -->|calls| b78cad2e_34cc_9fa8_80d7_78a1f69d3539
  9764bb93_860c_6dee_2112_890b69ee0aa3["create_effect()"]
  b4142a92_fb70_a0da_ca48_719b2f2398ad -->|calls| 9764bb93_860c_6dee_2112_890b69ee0aa3
  style b4142a92_fb70_a0da_ca48_719b2f2398ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/effects.js lines 233–241

export function user_pre_effect(fn) {
	validate_effect('$effect.pre');
	if (DEV) {
		define_property(fn, 'name', {
			value: '$effect.pre'
		});
	}
	return create_effect(RENDER_EFFECT | USER_EFFECT, fn, true);
}

Domain

Subdomains

Frequently Asked Questions

What does user_pre_effect() do?
user_pre_effect() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/effects.js.
Where is user_pre_effect() defined?
user_pre_effect() is defined in packages/svelte/src/internal/client/reactivity/effects.js at line 233.
What does user_pre_effect() call?
user_pre_effect() calls 2 function(s): create_effect, validate_effect.
What calls user_pre_effect()?
user_pre_effect() is called by 4 function(s): init, nonpassive, passive, run.

Analyze Your Own Codebase

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

Try Supermodel Free