How to batch requests with react realy?

40 Views Asked by At

Currently I'm fetching data like this:

const SomeComponent = ({variable}) => {
 const data = useLazyLoadQuery(
   NewsfeedQuery,
   {variable},
 );

 //...
}

This works fine, but calling this component with 10 different variables, will result in 10 separate requests.

Is it possible to batch this 10 queries together into a single request?

0

There are 0 best solutions below