Function useAllWhileMounted

  • Ties multiple subscriptions to the lifetime of the component that calls useAllWhileMounted. Given spread args of subscription-returning functions, gets the subscriptions from each subscription factory at component mount time, and unsubscribes them all at unmount time.

    Parameters

    • Rest ...subFactories: (() => Subscription)[]

    Returns void

Generated using TypeDoc