How to initialize query from within a loader using data from another query? - TanStack