const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
let react = require("react");
react = require_rolldown_runtime.__toESM(react);

//#region ../react-intlayer/dist/esm/server/useLoadDynamic.mjs
const useLoadDynamic = (_key, promise) => {
	/** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */
	const cachedPromise = react.default.cache(async () => await promise)();
	return react.default.use(cachedPromise);
};

//#endregion
exports.useLoadDynamic = useLoadDynamic;
//# sourceMappingURL=useLoadDynamic.cjs.map