import type { Observable } from 'rxjs' ; import { takeUntil } from 'rxjs/operators' ; import { onUnmounted } from 'vue' ; import { VueHook , fromHook } from '../hooks/from' ; param hook export const pipeUntil = < T > ( hook ) => takeUntil < T > ( fromHook ( hook ) ) ; param $ export const untilUnmounted = pipeUntil ( onUnmounted ) ;