import { u as r } from "./useRenderElement.js";
import { t as n } from "./useIsoLayoutEffect.js";
function o(e) {
  const t = r(f, e).current;
  return t.next = e, n(t.effect), t;
}
function f(e) {
  const t = {
    current: e,
    next: e,
    effect: () => {
      t.current = t.next;
    }
  };
  return t;
}
export {
  o as t
};

//# sourceMappingURL=useValueAsRef.js.map