import { shallowRef, onBeforeUnmount } from 'vue';

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

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