redux-requests icon indicating copy to clipboard operation
redux-requests copied to clipboard

How can i reset all request types without request keys

Open favger opened this issue 3 years ago • 1 comments

x1x1x1

dispatch(resetRequests([
    actionTypes.FETCH_PUBLISHING_SPECIAL_DAYS,
    actionTypes.FETCH_PUBLISHING
]));

favger avatar Mar 30 '21 16:03 favger

@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.

klis87 avatar Mar 30 '21 17:03 klis87