-
Notifications
You must be signed in to change notification settings - Fork 4
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
Initiate with forceRefetch not working as expected #58
Comments
@SaulMoro Do not forget me. |
Is a problem relates to rtk-query reduxjs/redux-toolkit#2921 (comment) Anyway, there are better ways to archive your goal:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
Current behavior
Expected behavior
Initiate() with
forceRefetch
should run again and not bring old values from the cache. As a workaround, instead of calling another endpoint with initiate, I had to reimplement the other endpoint to avoid initiate.Minimal reproduction of the problem with instructions
forceRefetch
to call againWhat is the motivation / use case for changing the behavior?
The motivation is to call another endpoint, taking advantage of its entire construction, without having to rewrite it again.
Is this problem related to
redux-toolkit
or thengrx-rtk-query
lib? I have not validated pure RTK in another project.Environment
The text was updated successfully, but these errors were encountered: