Replies: 1 comment 1 reply
-
The short answer is that RTK Query is not really designed for this use case. RTK Query is a "document/response"-style caching tool, not a "normalized" caching tool: There's no direct way to combine data from different endpoints like that. (It might be possible to wrangle something together using the cache lifecycle methods and |
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
-
Example If I want to render the list as fast as possible by call this API first:
Then call get the rest data one by one (lazy load) (when render or element in viewport)
Redux Query:
How to merge the actual data into the list, when I run…?
Render the list:
data
should be…Right now I cannot merge the actual data (
getPost("1")
) to the list (getPosts
)This is possible ? or any better solution?
Thanks so much.
Beta Was this translation helpful? Give feedback.
All reactions