switchyard
    Preparing search index...
    • Starts machine and ties it to owner's lifetime: destroying the owner (a component, service or route) stops the machine, its timers and its actors.

      fetch = machine(this, new Fetch())
      

      Type Parameters

      Parameters

      • owner: object
      • instance: M

      Returns M