'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

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.default = eagerComputed;
//# sourceMappingURL=eagerComputed.js.map
