stopSubscriptions
stopSubscriptions
is a built-in action which stops active subscriptions,
for example:
import { stopSubscriptions } from '@redux-requests/core';
// stop all subscriptionsdispatch(stopSubscriptions());
// stop subscription for FETCH_BOOKSdispatch(stopSubscriptions([ON_BOOKS_ADDED]));
// stop subscriptions for ON_BOOKS_ADDED and ON_BOOK_ADDED with 1 request keydispatch(stopSubscriptions([ON_BOOKS_ADDED, `${ON_BOOK_ADDED}1`]));