Skip to content

Hook for getting updates on observable subscribers count change #159

Description

@quixot1c

Hi, I was wondering if there is a way to be notified when the amount of subscribers on an observable changes. Something like

subscribersChanged(observable, newCount => doSomething(newCount))

I implemented some sort of pipe equivalent to RxJS and I would like to have this functionality so I can unobserve the chain of observables in the pipe when the last observable isn't observed anymore.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions