should I use getQueryData in this use case? - TanStack