How to do this React Query thing without useEffect - Theo's Typesafe Cult