{"version":3,"file":"index.cjs","sources":["../../../../../packages/hooks/use-destroyed/index.ts"],"sourcesContent":["import { onBeforeUnmount, shallowRef } from 'vue';\n\nexport function useDestroyed() {\n  const destroyed = shallowRef(false);\n  onBeforeUnmount(() => {\n    destroyed.value = true;\n  });\n\n  return destroyed;\n}\n"],"names":["shallowRef","onBeforeUnmount"],"mappings":";;;;AAEO,SAAS,YAAe,GAAA;AAC7B,EAAM,MAAA,SAAA,GAAYA,eAAW,KAAK,CAAA,CAAA;AAClC,EAAAC,mBAAA,CAAgB,MAAM;AACpB,IAAA,SAAA,CAAU,KAAQ,GAAA,IAAA,CAAA;AAAA,GACnB,CAAA,CAAA;AAED,EAAO,OAAA,SAAA,CAAA;AACT;;;;"}