Is `data` always meant to be possibly undefined - TanStack