mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Transition Tracing] Fix Cache and Transitions Pop Order (#24719)
We push the Cache before the transition so we should pop the transition before the cache. This PR fixes this issue.
This commit is contained in:
@@ -139,13 +139,13 @@ export function pushTransition(
|
||||
|
||||
export function popTransition(workInProgress: Fiber, current: Fiber | null) {
|
||||
if (current !== null) {
|
||||
if (enableCache) {
|
||||
pop(resumedCache, workInProgress);
|
||||
}
|
||||
|
||||
if (enableTransitionTracing) {
|
||||
pop(transitionStack, workInProgress);
|
||||
}
|
||||
|
||||
if (enableCache) {
|
||||
pop(resumedCache, workInProgress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -139,13 +139,13 @@ export function pushTransition(
|
||||
|
||||
export function popTransition(workInProgress: Fiber, current: Fiber | null) {
|
||||
if (current !== null) {
|
||||
if (enableCache) {
|
||||
pop(resumedCache, workInProgress);
|
||||
}
|
||||
|
||||
if (enableTransitionTracing) {
|
||||
pop(transitionStack, workInProgress);
|
||||
}
|
||||
|
||||
if (enableCache) {
|
||||
pop(resumedCache, workInProgress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user