Home / Function/ hydration_attribute_changed() — svelte Function Reference

hydration_attribute_changed() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2cb97095_4143_1560_6dce_355a44f79dae["hydration_attribute_changed()"]
  df278ca2_0a6c_fefe_09f2_b397500fe3c2["warnings.js"]
  2cb97095_4143_1560_6dce_355a44f79dae -->|defined in| df278ca2_0a6c_fefe_09f2_b397500fe3c2
  111c4519_c7e6_3546_5a6f_e63970808b2e["check_src_in_dev_hydration()"]
  111c4519_c7e6_3546_5a6f_e63970808b2e -->|calls| 2cb97095_4143_1560_6dce_355a44f79dae
  style 2cb97095_4143_1560_6dce_355a44f79dae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/warnings.js lines 108–114

export function hydration_attribute_changed(attribute, html, value) {
	if (DEV) {
		console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${attribute}\` attribute on \`${html}\` changed its value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`, bold, normal);
	} else {
		console.warn(`https://svelte.dev/e/hydration_attribute_changed`);
	}
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free