Skip to content

Commit 6bf2797

Browse files
authoredApr 7, 2018
Remove flushSync from React Native (#12565)
There are no plans to enable async in the old renderer. In the new renderer it only really makes sense to do from the main thread and probably from native since it'll have to yield to native first.
1 parent 5b16b39 commit 6bf2797

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed
 

‎packages/react-native-renderer/src/ReactFabric.js

-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ const ReactFabric: ReactNativeType = {
7777

7878
unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,
7979

80-
flushSync: ReactFabricRenderer.flushSync,
81-
8280
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
8381
// Used as a mixin in many createClass-based components
8482
NativeMethodsMixin,

‎packages/react-native-renderer/src/ReactNativeRenderer.js

-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ const ReactNativeRenderer: ReactNativeType = {
9696

9797
unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,
9898

99-
flushSync: ReactNativeFiberRenderer.flushSync,
100-
10199
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
102100
// Used as a mixin in many createClass-based components
103101
NativeMethodsMixin,

0 commit comments

Comments
 (0)
Please sign in to comment.