import { Ref , watch } from '@vue/composition-api' ; export function nonReactive < T > ( ref ) { const holder = { value : ref . value , } ; watch ( ref , value => { holder . value = value ; } , { flush : 'sync' , } ) ; return holder ; } export function addNonReactiveProperties < T = any > ( target , props ) { for ( const key in props ) { Object . defineProperty ( target , key , { value : props [ key ] , writable : true , enumerable : true , configurable : false , } ) ; } }