import { ref, onBeforeUpdate } from 'vue';

function useRefs() {
  const refs = ref(/* @__PURE__ */ new Map());
  const setRef = (key) => (el) => {
    refs.value.set(key, el);
  };
  onBeforeUpdate(() => {
    refs.value = /* @__PURE__ */ new Map();
  });
  return [setRef, refs];
}

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