Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/common/hooks/useLoad",["module","exports","require","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function useLoad(){const r=o(new Map),t=(0,n.useIsMounted)();return e(((e,n)=>(r.current.get(e)||r.current.set(e,new Promise(((a,o)=>{Liferay.Loader.require([n],(e=>{t()&&a(e.default)}),(n=>{t()&&(r.current.delete(e),o(n))}))}))),r.current.get(e))),[t])};var n=t("@liferay/frontend-js-react-web"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react"));const{useCallback:e,useRef:o}=a.default}}));
//# sourceMappingURL=useLoad.js.map