Fixed an infinite loop when calling handle.ready()
Renamed the subscription handle ref to subscription to avoid confusion
Had to move the handle out of the ref, otherwise Typescript got confused by the circular reference (stop and ready use ref.subscription) and you lose typings for ref
Similarly, I had to change the ?.stop() and ?.ready() to full checks to silence Typescript warnings
handle.ready()
subscription
to avoid confusionstop
andready
useref.subscription
) and you lose typings forref
?.stop()
and?.ready()
to full checks to silence Typescript warnings