import { useRef as u, useMemo as r, useEffect as n } from "../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
const o = (s) => {
  const e = u(!1), t = r(() => s, [s]);
  return n(() => (e.current = !0, () => {
    e.current = !1, t && t();
  }), [t]), e;
};
export {
  o as default
};
