'use strict';

var vue = require('vue');

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

exports.useRefs = useRefs;
//# sourceMappingURL=index.cjs.map
