Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!