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

Function observerBatching

packages/mobx-react-lite/src/utils/observerBatching.ts:7–17  ·  view source on GitHub ↗
(reactionScheduler: any)

Source from the content-addressed store, hash-verified

5}
6
7export function observerBatching(reactionScheduler: any) {
8 if (!reactionScheduler) {
9 reactionScheduler = defaultNoopBatch
10 if ("production" !== process.env.NODE_ENV) {
11 console.warn(
12 "[MobX] Failed to get unstable_batched updates from react-dom / react-native"
13 )
14 }
15 }
16 configure({ reactionScheduler })
17}
18
19export const isObserverBatched = () => {
20 if ("production" !== process.env.NODE_ENV) {

Callers 1

index.tsFile · 0.90

Calls 1

configureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…