Home / Function/ pushMutationContext() — react Function Reference

pushMutationContext() — react Function Reference

Architecture documentation for the pushMutationContext() function in ReactFiberMutationTracking.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  10ff51a0_caf4_3442_72f9_fbea3bdcc8bc["pushMutationContext()"]
  1a6f1ac9_f5f1_3a2e_6503_c920a4d4a8ae["ReactFiberMutationTracking.js"]
  10ff51a0_caf4_3442_72f9_fbea3bdcc8bc -->|defined in| 1a6f1ac9_f5f1_3a2e_6503_c920a4d4a8ae
  14488ed6_0070_cb72_08ff_37fc5c860d29["recursivelyInsertNewFiber()"]
  14488ed6_0070_cb72_08ff_37fc5c860d29 -->|calls| 10ff51a0_caf4_3442_72f9_fbea3bdcc8bc
  d5ea8670_901e_392b_55a7_640c298b5971["recursivelyInsertClonesFromExistingTree()"]
  d5ea8670_901e_392b_55a7_640c298b5971 -->|calls| 10ff51a0_caf4_3442_72f9_fbea3bdcc8bc
  585297c1_5fbc_f778_b0fa_7f11968cec48["insertDestinationClonesOfFiber()"]
  585297c1_5fbc_f778_b0fa_7f11968cec48 -->|calls| 10ff51a0_caf4_3442_72f9_fbea3bdcc8bc
  bc4a6de9_07dc_eca7_681a_10f692e08483["commitMutationEffectsOnFiber()"]
  bc4a6de9_07dc_eca7_681a_10f692e08483 -->|calls| 10ff51a0_caf4_3442_72f9_fbea3bdcc8bc
  style 10ff51a0_caf4_3442_72f9_fbea3bdcc8bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberMutationTracking.js lines 27–34

export function pushMutationContext(): boolean {
  if (!enableViewTransition) {
    return false;
  }
  const prev = viewTransitionMutationContext;
  viewTransitionMutationContext = false;
  return prev;
}

Domain

Subdomains

Frequently Asked Questions

What does pushMutationContext() do?
pushMutationContext() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberMutationTracking.js.
Where is pushMutationContext() defined?
pushMutationContext() is defined in packages/react-reconciler/src/ReactFiberMutationTracking.js at line 27.
What calls pushMutationContext()?
pushMutationContext() is called by 4 function(s): commitMutationEffectsOnFiber, insertDestinationClonesOfFiber, recursivelyInsertClonesFromExistingTree, recursivelyInsertNewFiber.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free