Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i reset all request types without request keys #453

Open
favger opened this issue Mar 30, 2021 · 1 comment
Open

How can i reset all request types without request keys #453

favger opened this issue Mar 30, 2021 · 1 comment

Comments

@favger
Copy link

favger commented Mar 30, 2021

x1x1x1

dispatch(resetRequests([
    actionTypes.FETCH_PUBLISHING_SPECIAL_DAYS,
    actionTypes.FETCH_PUBLISHING
]));
@klis87
Copy link
Owner

klis87 commented Mar 30, 2021

@favger Similar issue to #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants