1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isObserverBatched = exports.observerBatching = exports.defaultNoopBatch = void 0;
|
4 | var mobx_1 = require("mobx");
|
5 | function defaultNoopBatch(callback) {
|
6 | callback();
|
7 | }
|
8 | exports.defaultNoopBatch = defaultNoopBatch;
|
9 | function observerBatching(reactionScheduler) {
|
10 | if (!reactionScheduler) {
|
11 | reactionScheduler = defaultNoopBatch;
|
12 | if ("production" !== process.env.NODE_ENV) {
|
13 | console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native");
|
14 | }
|
15 | }
|
16 | (0, mobx_1.configure)({ reactionScheduler: reactionScheduler });
|
17 | }
|
18 | exports.observerBatching = observerBatching;
|
19 | var isObserverBatched = function () {
|
20 | if ("production" !== process.env.NODE_ENV) {
|
21 | console.warn("[MobX] Deprecated");
|
22 | }
|
23 | return true;
|
24 | };
|
25 | exports.isObserverBatched = isObserverBatched;
|
26 |
|
\ | No newline at end of file |