Wrong type inference from beforeLoad/loader when using complex objects in return - TanStack