Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@ PureComponent.prototype.shouldComponentUpdate = function(props, state) {
return shallowDiffers(this.props, props) || shallowDiffers(this.state, state);
};

function unstable_batchedUpdates(callback) {
callback();
}

export {
version,
DOM,
Expand All @@ -607,8 +611,7 @@ export {
Component,
PureComponent,
renderSubtreeIntoContainer as unstable_renderSubtreeIntoContainer,
// this is a really old hidden react api, but something out there uses it
// https://twitter.com/Joseph_Wynn/status/888046593286574085
unstable_batchedUpdates,
extend as __spread
};

Expand All @@ -628,5 +631,6 @@ export default {
Component,
PureComponent,
unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer,
unstable_batchedUpdates,
__spread: extend
};