Liferay.Loader.define("data-engine-taglib@3.3.53/data_layout_builder/js/hooks/useLoad.es",["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=u(new Map),t=(0,a.useIsMounted)();return e(((e,a)=>(r.current.get(e)||r.current.set(e,new Promise(((n,u)=>{Liferay.Loader.require([a],(e=>{t()&&n(e.default)}),(a=>{t()&&(r.current.delete(e),u(a))}))}))),r.current.get(e))),[t])};var a=t("@liferay/frontend-js-react-web"),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react"));const{useCallback:e,useRef:u}=n.default}}));
//# sourceMappingURL=useLoad.es.js.map