redux-requests
redux-requests copied to clipboard
How can i reset all request types without request keys
dispatch(resetRequests([
actionTypes.FETCH_PUBLISHING_SPECIAL_DAYS,
actionTypes.FETCH_PUBLISHING
]));
@favger Similar issue to https://github.com/klis87/redux-requests/issues/365 , for now you can reset either everything or you need to pass requestKey explicitely. However, if you use useQuery
in React, you don't need to worry about reset, this is done automatically for you. Probably in the future there will be a way to achieve what you need, like in attached related issue.