import { shallowRef, onBeforeUnmount } from 'vue';

function useDestroyed() {
  const destroyed = shallowRef(false);
  onBeforeUnmount(() => {
    destroyed.value = true;
  });
  return destroyed;
}

export { useDestroyed };
//# sourceMappingURL=index.mjs.map
