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

126
Vistas
Vue3 - Reactivity not working as expected

There something about Vue3 reactivity that I am not understanding...

<template>
  <Pagination v-model="params" />
</template>

import { defineComponent, reactive, computed } from 'vue'
import { useStore } from 'vuex'

export default defineComponent({
  name: 'Jobs'
  setup(){
    const store = useStore()
    const jobsParams = computed(() => store.getters['Jobs/getParams'])
    const params = reactive(jobsParams) // Should be reactive?

    return { params }
  }
})

I want to get jobs from the store and then 'copy' it to a reactive object called params that I can then manipulate based on a child component.

The error that I am getting when updating the value of params is:

Write operation failed: computed value is readonly

Why would I be getting this error when I am not manipulating those values?

If that is not the way to do this, how can I correctly pass a object to Pagination and update the values accordingly?

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