Home / Function/ increment() — svelte Function Reference

increment() — svelte Function Reference

Architecture documentation for the increment() function in sources.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  7602fc38_fab9_8955_83f0_8643d7c6c7a4["increment()"]
  e5c35d51_28d8_9054_923d_b7f82a3c8dc2["sources.js"]
  7602fc38_fab9_8955_83f0_8643d7c6c7a4 -->|defined in| e5c35d51_28d8_9054_923d_b7f82a3c8dc2
  c55b2607_d45b_c327_8826_7bdf245d80f6["proxy()"]
  c55b2607_d45b_c327_8826_7bdf245d80f6 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  ab9c13ec_1c6d_0b81_72f5_188dfda4191b["increment()"]
  ab9c13ec_1c6d_0b81_72f5_188dfda4191b -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  92303a26_c904_85e7_5ec0_8e0605dbb9f9["createSubscriber()"]
  92303a26_c904_85e7_5ec0_8e0605dbb9f9 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  c4654be9_603f_7b49_e404_23ea06eb0af5["set()"]
  c4654be9_603f_7b49_e404_23ea06eb0af5 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  93c3f10b_1e5e_7023_b942_665d846b5985["delete()"]
  93c3f10b_1e5e_7023_b942_665d846b5985 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  2145e21f_9b2c_e7de_4893_b095e5024719["clear()"]
  2145e21f_9b2c_e7de_4893_b095e5024719 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  c3ab1fe7_dc0c_4dce_760e_a2afd68ccc68["add()"]
  c3ab1fe7_dc0c_4dce_760e_a2afd68ccc68 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  64f0baa3_3905_9966_9720_bebedd8e7a54["delete()"]
  64f0baa3_3905_9966_9720_bebedd8e7a54 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  687f3c30_8fae_fb5d_2f23_045d2220f990["clear()"]
  687f3c30_8fae_fb5d_2f23_045d2220f990 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  b48043f5_5a93_dc20_5376_9a775073fc34["REPLACE()"]
  b48043f5_5a93_dc20_5376_9a775073fc34 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  a534d001_d784_dabd_d365_9f306868f2c3["append()"]
  a534d001_d784_dabd_d365_9f306868f2c3 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  046a7862_8867_9133_5529_3da5f6a5e9f7["delete()"]
  046a7862_8867_9133_5529_3da5f6a5e9f7 -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  b7080258_44b6_7cd0_5642_01689cb0430b["set()"]
  b7080258_44b6_7cd0_5642_01689cb0430b -->|calls| 7602fc38_fab9_8955_83f0_8643d7c6c7a4
  style 7602fc38_fab9_8955_83f0_8643d7c6c7a4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/sources.js lines 313–315

export function increment(source) {
	set(source, source.v + 1);
}

Domain

Subdomains

Frequently Asked Questions

What does increment() do?
increment() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/sources.js.
Where is increment() defined?
increment() is defined in packages/svelte/src/internal/client/reactivity/sources.js at line 313.
What does increment() call?
increment() calls 2 function(s): increment, set.
What calls increment()?
increment() is called by 14 function(s): REPLACE, add, append, clear, clear, createSubscriber, delete, delete, and 6 more.

Analyze Your Own Codebase

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

Try Supermodel Free