Home / Function/ ownership_invalid_binding() — svelte Function Reference

ownership_invalid_binding() — svelte Function Reference

Architecture documentation for the ownership_invalid_binding() function in warnings.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  c5530e39_a229_e6a9_487d_f7fd0e3422f0["ownership_invalid_binding()"]
  df278ca2_0a6c_fefe_09f2_b397500fe3c2["warnings.js"]
  c5530e39_a229_e6a9_487d_f7fd0e3422f0 -->|defined in| df278ca2_0a6c_fefe_09f2_b397500fe3c2
  b9ef2508_e66f_3eaa_0cd0_203408254ada["create_ownership_validator()"]
  b9ef2508_e66f_3eaa_0cd0_203408254ada -->|calls| c5530e39_a229_e6a9_487d_f7fd0e3422f0
  style c5530e39_a229_e6a9_487d_f7fd0e3422f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/warnings.js lines 193–199

export function ownership_invalid_binding(parent, prop, child, owner) {
	if (DEV) {
		console.warn(`%c[svelte] ownership_invalid_binding\n%c${parent} passed property \`${prop}\` to ${child} with \`bind:\`, but its parent component ${owner} did not declare \`${prop}\` as a binding. Consider creating a binding between ${owner} and ${parent} (e.g. \`bind:${prop}={...}\` instead of \`${prop}={...}\`)\nhttps://svelte.dev/e/ownership_invalid_binding`, bold, normal);
	} else {
		console.warn(`https://svelte.dev/e/ownership_invalid_binding`);
	}
}

Domain

Subdomains

Frequently Asked Questions

What does ownership_invalid_binding() do?
ownership_invalid_binding() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/warnings.js.
Where is ownership_invalid_binding() defined?
ownership_invalid_binding() is defined in packages/svelte/src/internal/client/warnings.js at line 193.
What calls ownership_invalid_binding()?
ownership_invalid_binding() is called by 1 function(s): create_ownership_validator.

Analyze Your Own Codebase

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

Try Supermodel Free