Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/hooks/useRequest.es",["module","exports","require","liferay!frontend-js-react-web$react","../utils/client.es"],(function(e,r,t){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){const[r,t]=(0,n.useState)({error:null,isLoading:!0,response:{}});return(0,n.useEffect)((()=>{(0,s.request)(e).then((e=>e.json())).then((e=>{t({error:null,isLoading:!1,response:e})})).catch((e=>{t({error:e,isLoading:!1,response:{}})}))}),[e]),r};var n=t("liferay!frontend-js-react-web$react"),s=t("../utils/client.es")}));
//# sourceMappingURL=useRequest.es.js.map