TanStackT
TanStack3y ago
5 replies
dry-scarlet

one query depending on another

Hi, i have a situation where my useItem query depends on my useFormOptions query, and sometimes useItem finishes fetching before useFormOptions.
What would be the correct way to always prefetch form options (or fetch if stale) before actually fetching item?
Was this page helpful?