stopPolling
stopPolling
is a built-in action which stops active pollings,
for example:
import { stopPolling } from '@redux-requests/core';
// stop polling for everythingdispatch(stopPolling());
// stop polling for FETCH_BOOKSdispatch(stopPolling([FETCH_BOOKS]));
// stop polling for DELETE_BOOKSdispatch(stopPolling([DELETE_BOOKS]));
// stop polling for FETCH_BOOKS and FETCH_BOOK with 1 request keydispatch( stopPolling([FETCH_BOOKS, { requestType: FETCH_BOOK, requestKey: '1' }]),);