Home / Function/ non_reactive_update() — svelte Function Reference

non_reactive_update() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b63bf8fa_9b7c_f5a0_c487_4065bf6e1d9f["non_reactive_update()"]
  56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"]
  b63bf8fa_9b7c_f5a0_c487_4065bf6e1d9f -->|defined in| 56a689f9_11c0_cc76_bd60_41bb6dc96475
  78a6ba9a_5003_f569_a638_76e4f1977809["analyze_component()"]
  78a6ba9a_5003_f569_a638_76e4f1977809 -->|calls| b63bf8fa_9b7c_f5a0_c487_4065bf6e1d9f
  style b63bf8fa_9b7c_f5a0_c487_4065bf6e1d9f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/warnings.js lines 627–629

export function non_reactive_update(node, name) {
	w(node, 'non_reactive_update', `\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`);
}

Domain

Subdomains

Frequently Asked Questions

What does non_reactive_update() do?
non_reactive_update() is a function in the svelte codebase, defined in packages/svelte/src/compiler/warnings.js.
Where is non_reactive_update() defined?
non_reactive_update() is defined in packages/svelte/src/compiler/warnings.js at line 627.
What calls non_reactive_update()?
non_reactive_update() is called by 1 function(s): analyze_component.

Analyze Your Own Codebase

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

Try Supermodel Free