TanStackT
TanStack3y ago
1 reply
uncertain-scarlet

Encapsulating queries

If I have several API calls that need to be manipulated and correlated with other API calls before the data is used in my component: is it acceptable/idiomatic to run a query against a promise that encapsulates all of those API calls, or is it preferred to handle each async function within the larger function separately?
Was this page helpful?