import {watch} from "../composition/reactivity"; import {TopDesign} from "../composition/context"; export const _watch: typeof watch = (...args: any[]) => { const unwatch = (watch as any)(...args); if (!!TopDesign.ctx) { TopDesign.ctx.effects.push(unwatch); } return unwatch; };