
Type 'T' is not assignable to type 'UnwrapRef'.

.

.

.

.
object 타입의 state가 필요하다면 shallowReactive를 사용하는 것도 좋다. 그러나 여전히 깊은 감지는 안되기 때문에 주의가 필요하다.
const state = shallowReactive({
foo: 1,
nested: {
bar: 2
}
})
// mutating state's own properties is reactive
state.foo++
// ...but does not convert nested objects
isReactive(state.nested) // false
// NOT reactive
state.nested.bar++