[react-interactions] Remove batchedUpdates from responder lifecycles (#17659)

This commit is contained in:
Dominic Gannaway
2019-12-19 13:07:00 +00:00
committed by GitHub
parent a5e951d4cc
commit e7494c86c5
@@ -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;
}
@@ -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;
}