mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[react-interactions] Remove batchedUpdates from responder lifecycles (#17659)
This commit is contained in:
1 parent
a5e951d4cc
commit
e7494c86c5
1 file changed
+2
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user