Why is this causing an infinite render loop? - TanStack