Use an action to cancel an Ajax request

InstructorShane Osbourne

Share this video with your friends

Send Tweet

Sometimes you need to cancel a pending request based on an action performed by the User. In this lesson we’ll see how we can stop an in-flight ajax request by dispatching another action into the store and making use of the Rx operator ‘takeUntil’.