# no-ref-object-reactivity-loss

Rule `vue/no-ref-object-reactivity-loss`. Disallow usages of ref objects that can lead to loss of reactivity

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1831 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-ref-object-reactivity-loss` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-ref-object-reactivity-loss.html) |
| Biome | `nursery/noVueRefObjectReactivityLoss` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-ref-object-reactivity-loss/) |

## Code examples

### Incorrect: the rule reports this

```js
import { ref } from "vue";

const count = ref(0);
const doubled = count.value * 2;
```

```js
import { ref } from "vue";

const count = ref(0);
const { value } = count;
```

```js
import { toRefs } from "vue";

const { title } = toRefs(props);
console.log(title.value);
```

### Correct: the rule accepts this

```js
import { computed, ref, watch } from "vue";

const count = ref(0);
const doubled = computed(() => count.value * 2);

watch(count, () => {
    console.log(count.value);
});

function increment() {
    count.value++;
}

count.value = 10;
```

Examples from the Biome documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-ref-object-reactivity-loss": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noVueRefObjectReactivityLoss": "error"
      }
    }
  }
}
```

## Related rules

- [vue/no-negated-v-if-condition](https://lintradar.dev/rules/vue/no-negated-v-if-condition.md): Disallow negated conditions in v-if/v-else
- [vue/no-restricted-call-after-await](https://lintradar.dev/rules/vue/no-restricted-call-after-await.md): Disallow asynchronously called restricted methods
- [vue/no-negated-condition](https://lintradar.dev/rules/vue/no-negated-condition.md): Disallow negated conditions in `<template>`
- [vue/no-restricted-component-options](https://lintradar.dev/rules/vue/no-restricted-component-options.md): Disallow specific component option
- [vue/no-multiple-objects-in-class](https://lintradar.dev/rules/vue/no-multiple-objects-in-class.md): Disallow passing multiple objects in an array to class
- [vue/no-restricted-html-elements](https://lintradar.dev/rules/vue/no-restricted-html-elements.md): Disallow specific elements

---

Web page: https://lintradar.dev/rules/vue/no-ref-object-reactivity-loss. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
