Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sveltejs/svelte
/ oncommit
Method
oncommit
packages/svelte/src/internal/client/reactivity/batch.js:839–841 ·
view source on GitHub ↗
@param {(batch: Batch) => void} fn
(fn)
Source
from the content-addressed store, hash-verified
837
838
/** @param {(batch: Batch) => void} fn */
839
oncommit(fn) {
840
this.#commit_callbacks.add(fn);
841
}
842
843
/** @param {(batch: Batch) => void} fn */
844
ondiscard(fn) {
Callers
4
#merge
Method · 0.95
ensure
Method · 0.80
each
Function · 0.80
error
Method · 0.80
Calls
1
add
Method · 0.45
Tested by
no test coverage detected