364function commitBeforeMutationEffects_begin(isViewTransitionEligible: boolean) {
365 // If this commit is eligible for a View Transition we look into all mutated subtrees.
366▶ // TODO: We could optimize this by marking these with the Snapshot subtree flag in the render phase.
367 const subtreeMask = isViewTransitionEligible
368 ? BeforeAndAfterMutationTransitionMask
· · ·
374 // Let's skip the whole loop if it's off.
375 if (enableCreateEventHandleAPI || isViewTransitionEligible) {
376▶ // TODO: Should wrap this in flags check, too, as optimization
377 const deletions = fiber.deletions;
378 if (deletions !== null) {
· · ·
395 // to trigger updates of any nested view transitions and we shouldn't
396 // have any other before mutation effects since snapshot effects are
397▶ // only applied to updates. TODO: Model this using only flags.
398 if (isViewTransitionEligible) {
399 trackEnterViewTransitions(fiber);
· · ·
403 }
404
405▶ // TODO: This should really unify with the switch in commitBeforeMutationEffectsOnFiber recursively.
406 if (enableViewTransition && fiber.tag === OffscreenComponent) {
407 const isModernRoot =
· · ·
427 // to trigger updates of any nested view transitions and we shouldn't
428 // have any other before mutation effects since snapshot effects are
429▶ // only applied to updates. TODO: Model this using only flags.
430 if (isViewTransitionEligible) {
431 trackEnterViewTransitions(fiber);
+ 67 more matches in this file