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

Providing tags via callback in RTKQ #2780

Closed
radulle opened this issue Oct 16, 2022 · 1 comment
Closed

Providing tags via callback in RTKQ #2780

radulle opened this issue Oct 16, 2022 · 1 comment

Comments

@radulle
Copy link

radulle commented Oct 16, 2022

When providing tags via callback like in example given in https://redux-toolkit.js.org/rtk-query/usage/automated-refetching#providing-errors-to-the-cache sets both UNAUTHORIZED and Post after user logs in (UNAUTHORIZED is not removed). I believe providesTags should ensure that only the result from the last callback should be in api.provided (old tags should be removed).

@phryneas
Copy link
Member

See #2721 and #2717 - this is already merged into the integration branch for the next release.

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

No branches or pull requests

3 participants