diff --git a/src/Transition.js b/src/Transition.js index 41cd1f38..fe59bc12 100644 --- a/src/Transition.js +++ b/src/Transition.js @@ -291,8 +291,10 @@ class Transition extends React.Component { this.props.onExiting(maybeNode); this.onTransitionEnd(timeouts.exit, () => { - this.safeSetState({ status: EXITED }, () => { - this.props.onExited(maybeNode); + ReactDOM.flushSync(() => { + this.safeSetState({ status: EXITED }, () => { + this.props.onExited(maybeNode); + }); }); }); });