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