@samitouri / QOS-React-2 / commits / 6bf2797d6c

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.

Sebastian Markbåge committed Apr 6, 2018 at 17:10 UTC 6bf2797d6cf76676791424afc93b76dd60d7074c
2 files changed -4
packages/react-native-renderer/src/ReactFabric.js
-2
@@ -77,8 +77,6 @@ const ReactFabric: ReactNativeType = {
77
78 unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,
79
80 - flushSync: ReactFabricRenderer.flushSync,
81 -
80 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
81 // Used as a mixin in many createClass-based components
82 NativeMethodsMixin,
packages/react-native-renderer/src/ReactNativeRenderer.js
-2
@@ -96,8 +96,6 @@ const ReactNativeRenderer: ReactNativeType = {
96
97 unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,
98
99 - flushSync: ReactNativeFiberRenderer.flushSync,
100 -
99 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
100 // Used as a mixin in many createClass-based components
101 NativeMethodsMixin,