"use client";
import { t as e } from "./useIsoLayoutEffect-CKOv1bV_.js";
import { t } from "./useStableCallback-CqEVb76s.js";
import * as n from "react";
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/useValueChanged.js
function r(r, i) {
	let a = n.useRef(r), o = t(i);
	e(() => {
		a.current !== r && o(a.current);
	}, [r, o]), e(() => {
		a.current = r;
	}, [r]);
}
//#endregion
export { r as t };
