me gustaria deshabilitar el boton continuar si valores esta vacio, pero con esto si ingresamos espacio esta validando y habilitando el boton. También estoy recortando el valor.
const disableContinue = () => { if (!watch('firstName') || !watch('lastName')) return true; if (!watch('nameChangeReason')) return true; if (watch('nameChangeReason') === 'Other') { if (!watch('nameChangeOtherReason')) return true; } return false; };componente de campo de texto
<TextField variant="delineado" inputRef={tipo de registro === 'función' ? registro (nombre): ref} requerido = {requerido} valor = {tipo de valor === 'cadena'? valor?.trimStart() : valor} nombre={nombre} />