import { shallowRef, watchEffect } from 'vue';

function eagerComputed(fn) {
  const result = shallowRef();
  watchEffect(
    () => {
      result.value = fn();
    },
    {
      flush: "sync"
      // needed so updates are immediate.
    }
  );
  return result;
}

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