Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
Vue printing observer instead of default value

I am trying to console a prop in which I defined a default value. The funny part is I don't see any default value in the observer being printed:

{__ob__: Observer}
required: true
type: ƒ Object()

The definition of the prop:

propinQ: {
  type: Object,
  required: true,
  default: {},
},

If I use the prop as a validation (if it is already defined) the test passes even though it shouldn't, because the prop is not returning its default value, but itself. Something like this:

if(this.propinQ) // do smth

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda