Home / Function/ G() — react Function Reference

G() — react Function Reference

Architecture documentation for the G() function in ReactFiberTransition.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  586b8bc3_6725_2de7_9f53_bd5c2c11627e["G()"]
  7b9cb3e8_e71c_27b2_61e8_fe54f0f80f0b["ReactFiberTransition.js"]
  586b8bc3_6725_2de7_9f53_bd5c2c11627e -->|defined in| 7b9cb3e8_e71c_27b2_61e8_fe54f0f80f0b
  2e4f42a5_889a_dc6d_59d1_91763f97c720["cancelScheduledGesture()"]
  586b8bc3_6725_2de7_9f53_bd5c2c11627e -->|calls| 2e4f42a5_889a_dc6d_59d1_91763f97c720
  0c119bb8_aac9_82bf_2278_34d9bc71a8b0["startScheduledGesture()"]
  586b8bc3_6725_2de7_9f53_bd5c2c11627e -->|calls| 0c119bb8_aac9_82bf_2278_34d9bc71a8b0
  style 586b8bc3_6725_2de7_9f53_bd5c2c11627e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberTransition.js lines 135–148

  prevCancel: null | (() => void),
): () => void {
  return function cancelGesture(): void {
    if (scheduledGesture !== null) {
      cancelScheduledGesture(root, scheduledGesture);
    }
    if (prevCancel !== null) {
      prevCancel();
    }
  };
}

if (enableGestureTransition) {
  const prevOnStartGestureTransitionFinish = ReactSharedInternals.G;

Domain

Subdomains

Frequently Asked Questions

What does G() do?
G() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberTransition.js.
Where is G() defined?
G() is defined in packages/react-reconciler/src/ReactFiberTransition.js at line 135.
What does G() call?
G() calls 2 function(s): cancelScheduledGesture, startScheduledGesture.

Analyze Your Own Codebase

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

Try Supermodel Free