'use strict';

var vue = require('vue');

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

exports.eagerComputed = eagerComputed;
//# sourceMappingURL=eagerComputed.cjs.map
