TanStackT
TanStack2y ago
1 reply
developed-pink

Usequeries results referencing

In all the examples I have seen the useQueries function references results by number. Is it possible to acces results by query key also? Something like
const dataInfo1=results['info1'].data;
const dataInfo2=results['info2'].data;
This would dramatically improve readability if it were available, I believe.

Thanks.
Was this page helpful?