UNPKG

2.33 kBJavaScriptView Raw
1/**
2 * @license React
3 *
4 * Copyright (c) 2013-present, Facebook, Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */
9
10'use strict';
11
12(function(global, factory) {
13 typeof exports === 'object' && typeof module !== 'undefined'
14 ? (module.exports = factory(require('react')))
15 : typeof define === 'function' && define.amd // eslint-disable-line no-undef
16 ? define(['react'], factory) // eslint-disable-line no-undef
17 : (global.ScheduleTracking = factory(global));
18})(this, function(global) {
19 function unstable_clear() {
20 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_clear.apply(
21 this,
22 arguments
23 );
24 }
25
26 function unstable_getCurrent() {
27 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getCurrent.apply(
28 this,
29 arguments
30 );
31 }
32
33 function unstable_getThreadID() {
34 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getThreadID.apply(
35 this,
36 arguments
37 );
38 }
39
40 function unstable_subscribe() {
41 // eslint-disable-next-line max-len
42 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_subscribe.apply(
43 this,
44 arguments
45 );
46 }
47
48 function unstable_track() {
49 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_track.apply(
50 this,
51 arguments
52 );
53 }
54
55 function unstable_unsubscribe() {
56 // eslint-disable-next-line max-len
57 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_unsubscribe.apply(
58 this,
59 arguments
60 );
61 }
62
63 function unstable_wrap() {
64 return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_wrap.apply(
65 this,
66 arguments
67 );
68 }
69
70 return Object.freeze({
71 unstable_clear: unstable_clear,
72 unstable_getCurrent: unstable_getCurrent,
73 unstable_getThreadID: unstable_getThreadID,
74 unstable_subscribe: unstable_subscribe,
75 unstable_track: unstable_track,
76 unstable_unsubscribe: unstable_unsubscribe,
77 unstable_wrap: unstable_wrap,
78 });
79});