Normalizes values / refs / getters to values. This is similar to (), except that it also normalizes getters. If the argument is a getter, it will be invoked and its return value will be returned.
A getter, an existing ref, or a non-function value.
toValue(1) // 1toValue(ref(1)) // 1toValue(() => 1) // 1 Copy
toValue(1) // 1toValue(ref(1)) // 1toValue(() => 1) // 1
https://vuejs.org/api/reactivity-utilities.html#tovalue
Normalizes values / refs / getters to values. This is similar to (), except that it also normalizes getters. If the argument is a getter, it will be invoked and its return value will be returned.