File tree 3 files changed +10
-2
lines changed
react-native-renderer/src 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const {
48
48
unstable_getCurrentEventPriority : fabricGetCurrentEventPriority ,
49
49
} = nativeFabricUIManager ;
50
50
51
- import { diffInCommitPhase } from 'shared/ReactFeatureFlags' ;
51
+ import { diffInCommitPhase , useMicrotasksForSchedulingInNative } from 'shared/ReactFeatureFlags' ;
52
52
53
53
const { get : getViewConfigForType } = ReactNativeViewConfigRegistry ;
54
54
@@ -122,7 +122,6 @@ export * from 'react-reconciler/src/ReactFiberConfigWithNoMutation';
122
122
export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration' ;
123
123
export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes' ;
124
124
export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors' ;
125
- export * from 'react-reconciler/src/ReactFiberConfigWithNoMicrotasks' ;
126
125
export * from 'react-reconciler/src/ReactFiberConfigWithNoResources' ;
127
126
export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons' ;
128
127
@@ -499,3 +498,9 @@ export function waitForCommitToBeReady(): null {
499
498
}
500
499
501
500
export const NotPendingTransition : TransitionStatus = null ;
501
+
502
+ // -------------------
503
+ // Microtasks
504
+ // -------------------
505
+ export const supportsMicrotasks = useMicrotasksForSchedulingInNative ;
506
+ export const scheduleMicrotask : any = typeof queueMicrotask === 'function' ? queueMicrotask : scheduleTimeout ;
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ export const enableAsyncActions = __EXPERIMENTAL__;
125
125
126
126
export const alwaysThrottleRetries = true ;
127
127
128
+ export const useMicrotasksForSchedulingInNative = false ;
129
+
128
130
// -----------------------------------------------------------------------------
129
131
// Chopping Block
130
132
//
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const {
21
21
enableUseRefAccessWarning,
22
22
enableDeferRootSchedulingToMicrotask,
23
23
alwaysThrottleRetries,
24
+ useMicrotasksForSchedulingInNative,
24
25
} = dynamicFlags ;
25
26
26
27
// The rest of the flags are static for better dead code elimination.
You can’t perform that action at this time.
0 commit comments