Home / Function/ oncommit() — svelte Function Reference

oncommit() — svelte Function Reference

Architecture documentation for the oncommit() function in batch.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  9a3ccb07_fa02_c4b4_d89d_ee0b6ed474cb["oncommit()"]
  517c145b_769f_b163_6854_d8f2a4412e11["Batch"]
  9a3ccb07_fa02_c4b4_d89d_ee0b6ed474cb -->|defined in| 517c145b_769f_b163_6854_d8f2a4412e11
  8783b6d3_ff2d_7032_cf54_f6a71da85e37["ensure()"]
  8783b6d3_ff2d_7032_cf54_f6a71da85e37 -->|calls| 9a3ccb07_fa02_c4b4_d89d_ee0b6ed474cb
  7f76e82e_4ed8_1525_9136_2ae67868d44e["each()"]
  7f76e82e_4ed8_1525_9136_2ae67868d44e -->|calls| 9a3ccb07_fa02_c4b4_d89d_ee0b6ed474cb
  style 9a3ccb07_fa02_c4b4_d89d_ee0b6ed474cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/reactivity/batch.js lines 503–505

	oncommit(fn) {
		this.#commit_callbacks.add(fn);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does oncommit() do?
oncommit() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/batch.js.
Where is oncommit() defined?
oncommit() is defined in packages/svelte/src/internal/client/reactivity/batch.js at line 503.
What calls oncommit()?
oncommit() is called by 2 function(s): each, ensure.

Analyze Your Own Codebase

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

Try Supermodel Free