PromoCursed/node_modules/.cache/babel-loader/1cb30ef29de0451305bc50f334df1ef14ce2faad0099c988424d59e35423af35.json
2024-08-20 23:25:37 +04:00

1 line
1.4 KiB
JSON

{"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/Аришина)/source/repos/PromoCursed/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":[]}