import { onUnmounted } from '@vue/composition-api' ; import { watchSharedData } from '@vue-devtools/shared-utils' ; export function onSharedDataChange ( prop , handler ) { const off = watchSharedData ( prop , handler ) ; onUnmounted ( ( ) => { off ( ) ; } ) ; }