#one query depending on another
5 messages · Page 1 of 1 (latest)
use the enabled flag on useItem?
enabled is used exactly for this usecase.
enabled: !!formOptionsId
5 messages · Page 1 of 1 (latest)
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?
use the enabled flag on useItem?
enabled is used exactly for this usecase.
enabled: !!formOptionsId