373function commitBeforeMutationEffects_begin(isViewTransitionEligible: boolean) {
374 // If this commit is eligible for a View Transition we look into all mutated subtrees.
375▶ // TODO: We could optimize this by marking these with the Snapshot subtree flag in the render phase.
376 const subtreeMask = isViewTransitionEligible
377 ? BeforeAndAfterMutationTransitionMask
· · ·
383 // Let's skip the whole loop if it's off.
384 if (enableCreateEventHandleAPI || isViewTransitionEligible) {
385▶ // TODO: Should wrap this in flags check, too, as optimization
386 const deletions = fiber.deletions;
387 if (deletions !== null) {
· · ·
404 // to trigger updates of any nested view transitions and we shouldn't
405 // have any other before mutation effects since snapshot effects are
406▶ // only applied to updates. TODO: Model this using only flags.
407 if (isViewTransitionEligible) {
408 trackEnterViewTransitions(fiber);
· · ·
412 }
413
414▶ // TODO: This should really unify with the switch in commitBeforeMutationEffectsOnFiber recursively.
415 if (enableViewTransition && fiber.tag === OffscreenComponent) {
416 const isModernRoot =
· · ·
436 // to trigger updates of any nested view transitions and we shouldn't
437 // have any other before mutation effects since snapshot effects are
438▶ // only applied to updates. TODO: Model this using only flags.
439 if (isViewTransitionEligible) {
440 trackEnterViewTransitions(fiber);
+ 68 more matches in this file