Replies: 1 comment
-
Have a look at the discussion about batching: the accepted answer shows a really good way how to do this with |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
We have an api that can send the results of multiple posts at a time.
GET api/posts?id=1,2
Please help me with some optimisation here.
I want to be able to store each post in its separate cache. Using
useQueries
for that. But the problem is it makes multiple API calls.How do update this so that fetchPost is only called once and can make API call fetching both the posts
api/posts?id=1,2
?Beta Was this translation helpful? Give feedback.
All reactions