mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[react-interactions] Remove batchedUpdates from responder lifecycles (#17659)
This commit is contained in:
@@ -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