PromoCursed/node_modules/.cache/babel-loader/6d2c958f793c7e6c611fb8ebf1ddea815ccbc6610210104ccd17051e5962fefc.json

1 line
1.4 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"import * as React from 'react';\n/** Similar with `useEffect` but only trigger after mounted */\nconst useUpdatedEffect = (callback, conditions) => {\n const mountRef = React.useRef(false);\n React.useEffect(() => {\n if (mountRef.current) {\n callback();\n } else {\n mountRef.current = true;\n }\n }, conditions);\n};\nexport default useUpdatedEffect;","map":{"version":3,"names":["React","useUpdatedEffect","callback","conditions","mountRef","useRef","useEffect","current"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/typography/hooks/useUpdatedEffect.js"],"sourcesContent":["import * as React from 'react';\n/** Similar with `useEffect` but only trigger after mounted */\nconst useUpdatedEffect = (callback, conditions) => {\n const mountRef = React.useRef(false);\n React.useEffect(() => {\n if (mountRef.current) {\n callback();\n } else {\n mountRef.current = true;\n }\n }, conditions);\n};\nexport default useUpdatedEffect;"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B;AACA,MAAMC,gBAAgB,GAAGA,CAACC,QAAQ,EAAEC,UAAU,KAAK;EACjD,MAAMC,QAAQ,GAAGJ,KAAK,CAACK,MAAM,CAAC,KAAK,CAAC;EACpCL,KAAK,CAACM,SAAS,CAAC,MAAM;IACpB,IAAIF,QAAQ,CAACG,OAAO,EAAE;MACpBL,QAAQ,CAAC,CAAC;IACZ,CAAC,MAAM;MACLE,QAAQ,CAACG,OAAO,GAAG,IAAI;IACzB;EACF,CAAC,EAAEJ,UAAU,CAAC;AAChB,CAAC;AACD,eAAeF,gBAAgB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}