Multiple queries for compare system RTK-Query #2811
Unanswered
andrewdoro
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The point of RTK Query is literally to do all of this for you. Just use it as explained in the tutorial and it is doing exactly that internally. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I started migrating to RTK and RTK-Query from Redux. Before I was fetching and creating a custom cache for each data response
id
, where on starting the fetch I add theloadingType:"started"
in the redux store and when the promise is finished, I change the loadingType to"finished"
.How should I implement this in RTK Query ?
in the end the object would have looked like this:
Beta Was this translation helpful? Give feedback.
All reactions