I have this code:
export default class Some{
private isUpdating: Ref<boolean> = ref(false)
....
constructor() {
console.log(this.isUpdating) //it shows RefImpl
}
async update() {
console.log(this.isUpdating) //it shows simple boolean...
this.isUpdating.value = true //...so this causes error
...some work
this.isUpdating.value = false
}
}
There no other modifications of this variable. Tried also initialize it in constructor method, but result is always the same: in constructor this variable is ref, after initialization it becomes simple boolean. Where am i wrong?