Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function activityGains

    • Per pair, the watts a hook removes from the page it is on (the gain), and the watts that page still draws above a quiet one (the residual). A pair with an arm that has no kept window is left out. The quiet arm is not the baseline of the gain: a quiet page is where a perfect hook would end.

      Parameters

      • arms: Readonly<Record<string, { extraWatts: Spread } | null | undefined>>
      • pairs: readonly ActivityPair[] = ACTIVITY_PAIRS

      Returns ActivityGain[]