removeWatcher
removeWatcher
is a built-in action which allows you to decrement number of watchers for a given request,
for example:
import { removeWatcher } from '@redux-requests/core';
dispatch(removeWatcher(FETCH_BOOKS));
Typically you will never use this action, it is useful only in order to integrate UI libraries like React with redux-requests
.
For instance, it is used by the officially supported @redux-requests/react
to automatically reset queries and mutations
once no component uses a given request type.