• Subscribes to the given store with two update functions provided. The first function is invoked on the initial subscription. All future updates are dispatched to the update function.

    Parameters

    • store: Readable<any> | Writable<any>

      Store to subscribe to...

    • first: any

      Function to receive first update.

    • update: any

      Function to receive future updates.

    Returns Unsubscriber

    Store unsubscribe function.