Handling complex component reuse, but with different api requests - TanStack