throwing an error with pendingComponent set? - TanStack