1×
Become a member
to unlock all features
Autoplay

    Use the filter and pairwise operators to determine when to show and hide the spinner

    rxjsRxJS
    >=6.5.3

    Having access now to an observable that tells us when the in-progress task count changes, we will use it to create two even more specialized streams that will bring us close to solving our initial problem: an event stream that fires when we need to show the spinner and another that fires when we need to hide it. We will be using the pairwise and filter operators.