Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.128/hooks/useSyncValue.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,r,t){window;Object.defineProperty(r,"__esModule",{value:!0}),r.useSyncValue=function useSyncValue(e,r=!0,t){const u=(0,n.useRef)(e),[a,c]=(0,n.useState)(e);return(0,n.useEffect)((()=>{const t=setTimeout((()=>{a!==e&&u.current!==e&&(u.current=e,c(e))}),r?300:0);return()=>{clearTimeout(t)}}),[r,e,a]),(0,n.useEffect)((()=>{t&&(u.current=null)}),[t]),[a,c]};var n=t("liferay!frontend-js-react-web$react")}));
//# sourceMappingURL=useSyncValue.es.js.map