abortRequests
abortRequests
is a built-in action which sometimes you might need to abort some pending requests manually,
for example:
import { abortRequests } from '@redux-requests/core';
// abort everythingdispatch(abortRequests());
// abort FETCH_BOOKSdispatch(abortRequests([FETCH_BOOKS]));
// abort DELETE_BOOKSdispatch(abortRequests([DELETE_BOOKS]));
// abort FETCH_BOOKS and FETCH_BOOK with 1 request keydispatch( abortRequests([FETCH_BOOKS, { requestType: FETCH_BOOK, requestKey: '1' }]),);