[react-interactions] Remove batchedUpdates from responder lifecycles (#17659)
Dominic Gannaway committed
Dec 19, 2019 at 13:07 UTC
e7494c86c501f53a1068953aa0f4efe4bb0c8655
1 file changed
+2
-6
packages/react-dom/src/events/DeprecatedDOMEventResponderSystem.js
+2
-6
@@ -445,9 +445,7 @@ export function mountEventResponder(
445
const previousInstance = currentInstance;
446
currentInstance = responderInstance;
447
try {
448
- batchedEventUpdates(() => {
449
- onMount(eventResponderContext, props, state);
450
- });
448
+ onMount(eventResponderContext, props, state);
449
} finally {
450
currentInstance = previousInstance;
451
}
@@ -464,9 +462,7 @@ export function unmountEventResponder(
462
const previousInstance = currentInstance;
463
currentInstance = responderInstance;
464
try {
467
- batchedEventUpdates(() => {
468
- onUnmount(eventResponderContext, props, state);
469
- });
465
+ onUnmount(eventResponderContext, props, state);
466
} finally {
467
currentInstance = previousInstance;
468
}