MCPcopy
hub / github.com/mobxjs/mobx / startBatch

Function startBatch

packages/mobx/src/core/observable.ts:106–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 * Avoids unnecessary recalculations.
105 */
106export function startBatch() {
107 globalState.inBatch++
108}
109
110export function endBatch() {
111 if (--globalState.inBatch === 0) {

Callers 13

defineProperty_Method · 0.85
delete_Method · 0.85
initObservableFunction · 0.85
runReaction_Method · 0.85
trackMethod · 0.85
disposeMethod · 0.85
getMethod · 0.85
reportChangedMethod · 0.85
_startActionFunction · 0.85
transactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…