Home / Function/ warn_once() — svelte Function Reference

warn_once() — svelte Function Reference

Architecture documentation for the warn_once() function in validate-options.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  e2a103cc_0e06_5510_7f64_766fce43a276["warn_once()"]
  1c00ccb7_a603_4a1b_e865_0343036fc5ca["validate-options.js"]
  e2a103cc_0e06_5510_7f64_766fce43a276 -->|defined in| 1c00ccb7_a603_4a1b_e865_0343036fc5ca
  1017acf0_5124_f287_2a28_64973b046e68["warn_removed()"]
  1017acf0_5124_f287_2a28_64973b046e68 -->|calls| e2a103cc_0e06_5510_7f64_766fce43a276
  620390aa_bc61_da6e_4469_c737bc338868["deprecate()"]
  620390aa_bc61_da6e_4469_c737bc338868 -->|calls| e2a103cc_0e06_5510_7f64_766fce43a276
  style e2a103cc_0e06_5510_7f64_766fce43a276 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/validate-options.js lines 184–189

function warn_once(fn) {
	if (!warned.has(fn)) {
		warned.add(fn);
		fn(null);
	}
}

Domain

Subdomains

Frequently Asked Questions

What does warn_once() do?
warn_once() is a function in the svelte codebase, defined in packages/svelte/src/compiler/validate-options.js.
Where is warn_once() defined?
warn_once() is defined in packages/svelte/src/compiler/validate-options.js at line 184.
What calls warn_once()?
warn_once() is called by 2 function(s): deprecate, warn_removed.

Analyze Your Own Codebase

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

Try Supermodel Free