Skip to content

vue/no-ref-as-operand ​

Use .value to access the ref value in expressions

PropertyValue
CategoryReactivity
Default Severitywarning
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Use .value to access the ref value in expressions

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Access a ref's value through .value in script code (not in the template, where refs unwrap automatically).


Rule source: vue/no-ref-as-operand

Released under the MIT License.