• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

141
Vistas
Vue Cookies not refreshing

I have one small problem with Vue 3. I'm trying to login a user, and it's working almost good, the problem is that, I have to refresh the page. So I have 2 files, one is for header where I'm getting logged in user token like:

const token = computed(
   () => useCookies().cookies.get('token')
)

and login vue, where I set token like:

useCookies().cookies.set('token', response.data.token)

So if I have computed function, shouldn't vue get it in realtime? Or what am I missing here?

almost 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda