igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function actionWithHandle

    • Something done on the screen whose answer includes fresh item handles of the screen's own lists (a rail an action reloaded): the run function receives the screen's handle, so it can build them with itemHandlesOf and hand the caller items a caller can act on, instead of the visit's snapshot. The action is otherwise action: it runs only while the screen is on top, and its answer carries the answers its run received under raw.

      The action's answer is canonical for the part of the screen it refreshed; the handle's data keeps what the visit loaded. Both are snapshots, neither overwrites the other.

      Type Parameters

      • State
      • Args extends readonly unknown[]
      • A
      • E
      • R

      Parameters

      Returns (
          self: ScreenHandle,
          state: State,
      ) => (
          ...args: Args,
      ) => Effect<
          ActionAnswer<A>,
          ScreenEnterConcurrentError | E,
          MobileNavigation | ScreenStack | Exclude<R, never>,
      >