"use client";
let react = require("react");
//#region src/utils/use-effect-once.ts
var useEffectOnce = (cb) => {
	const savedCallback = (0, react.useRef)(cb);
	const effectGuard = (0, react.useRef)(false);
	(0, react.useEffect)(() => {
		savedCallback.current = cb;
	});
	(0, react.useEffect)(() => {
		if (effectGuard.current !== true) {
			effectGuard.current = true;
			savedCallback.current();
		}
	}, []);
};
//#endregion
exports.useEffectOnce = useEffectOnce;
