Skip to content

Commit

Permalink
Remove flushSync from React Native (facebook#12565)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage authored and rhagigi committed Apr 19, 2018
1 parent 7980487 commit 82ab938
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/react-native-renderer/src/ReactFabric.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ const ReactFabric: ReactNativeType = {

unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,

flushSync: ReactFabricRenderer.flushSync,

__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
// Used as a mixin in many createClass-based components
NativeMethodsMixin,
Expand Down
2 changes: 0 additions & 2 deletions packages/react-native-renderer/src/ReactNativeRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ const ReactNativeRenderer: ReactNativeType = {

unstable_batchedUpdates: ReactGenericBatching.batchedUpdates,

flushSync: ReactNativeFiberRenderer.flushSync,

__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
// Used as a mixin in many createClass-based components
NativeMethodsMixin,
Expand Down

0 comments on commit 82ab938

Please sign in to comment.