This utility allows you to make multiple requests with react-query's useInfiniteQuery
hook and then combine all of them into a single result. That is, you can fetch data from multiple endpoints, but you'll only need to check one isSuccess
status, call only one refetch
function, etc.
Allows for sorting and de-duping data, if needed.
const foo = useInfiniteQuery('/api/foo')