Skip to content

Commit

Permalink
[react-interactions] Remove batchedUpdates from responder lifecycles (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Dec 19, 2019
1 parent a5e951d commit e7494c8
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ export function mountEventResponder(
const previousInstance = currentInstance;
currentInstance = responderInstance;
try {
batchedEventUpdates(() => {
onMount(eventResponderContext, props, state);
});
onMount(eventResponderContext, props, state);
} finally {
currentInstance = previousInstance;
}
Expand All @@ -464,9 +462,7 @@ export function unmountEventResponder(
const previousInstance = currentInstance;
currentInstance = responderInstance;
try {
batchedEventUpdates(() => {
onUnmount(eventResponderContext, props, state);
});
onUnmount(eventResponderContext, props, state);
} finally {
currentInstance = previousInstance;
}
Expand Down

0 comments on commit e7494c8

Please sign in to comment.