Home / Function/ update_store_pre() — svelte Function Reference

update_store_pre() — svelte Function Reference

Architecture documentation for the update_store_pre() function in index.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  41a2d800_b473_b838_f0d0_396b538fad88["update_store_pre()"]
  1c4bc493_24af_177e_7307_a999997aceac["index.js"]
  41a2d800_b473_b838_f0d0_396b538fad88 -->|defined in| 1c4bc493_24af_177e_7307_a999997aceac
  39360823_5388_f1f6_b8cd_766eefdbd8ed["store_get()"]
  41a2d800_b473_b838_f0d0_396b538fad88 -->|calls| 39360823_5388_f1f6_b8cd_766eefdbd8ed
  style 41a2d800_b473_b838_f0d0_396b538fad88 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/server/index.js lines 297–301

export function update_store_pre(store_values, store_name, store, d = 1) {
	const value = store_get(store_values, store_name, store) + d;
	store.set(value);
	return value;
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does update_store_pre() do?
update_store_pre() is a function in the svelte codebase, defined in packages/svelte/src/internal/server/index.js.
Where is update_store_pre() defined?
update_store_pre() is defined in packages/svelte/src/internal/server/index.js at line 297.
What does update_store_pre() call?
update_store_pre() calls 1 function(s): store_get.

Analyze Your Own Codebase

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

Try Supermodel Free