Home / Function/ state_snapshot_uncloneable() — svelte Function Reference

state_snapshot_uncloneable() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  91ac632d_4b78_121b_62b2_baef268585b2["state_snapshot_uncloneable()"]
  91a92bf8_dda4_0433_1381_bfdc545a4813["warnings.js"]
  91ac632d_4b78_121b_62b2_baef268585b2 -->|defined in| 91a92bf8_dda4_0433_1381_bfdc545a4813
  532a740d_d410_0fd6_983a_933cb13808e7["snapshot()"]
  532a740d_d410_0fd6_983a_933cb13808e7 -->|calls| 91ac632d_4b78_121b_62b2_baef268585b2
  style 91ac632d_4b78_121b_62b2_baef268585b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/shared/warnings.js lines 26–40

export function state_snapshot_uncloneable(properties) {
	if (DEV) {
		console.warn(
			`%c[svelte] state_snapshot_uncloneable\n%c${properties
				? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:

${properties}`
				: 'Value cannot be cloned with `$state.snapshot` — the original value was returned'}\nhttps://svelte.dev/e/state_snapshot_uncloneable`,
			bold,
			normal
		);
	} else {
		console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`);
	}
}

Subdomains

Called By

Frequently Asked Questions

What does state_snapshot_uncloneable() do?
state_snapshot_uncloneable() is a function in the svelte codebase, defined in packages/svelte/src/internal/shared/warnings.js.
Where is state_snapshot_uncloneable() defined?
state_snapshot_uncloneable() is defined in packages/svelte/src/internal/shared/warnings.js at line 26.
What calls state_snapshot_uncloneable()?
state_snapshot_uncloneable() is called by 1 function(s): snapshot.

Analyze Your Own Codebase

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

Try Supermodel Free