React test stuck on `isLoading` condition - TanStack