"use client";
import { u as n } from "./useIsoLayoutEffect-DpJo20by.js";
import { a as r } from "./useRenderElement-DNB2vtF1.js";
function c(e) {
  const t = r(s, e).current;
  return t.next = e, n(t.effect), t;
}
function s(e) {
  const t = {
    current: e,
    next: e,
    effect: () => {
      t.current = t.next;
    }
  };
  return t;
}
export {
  c as u
};
