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

1 line
1.5 KiB
JSON

{"ast":null,"code":"import * as React from 'react';\nexport default function useDebounce(value) {\n const [cacheValue, setCacheValue] = React.useState(value);\n React.useEffect(() => {\n const timeout = setTimeout(() => {\n setCacheValue(value);\n }, value.length ? 0 : 10);\n return () => {\n clearTimeout(timeout);\n };\n }, [value]);\n return cacheValue;\n}","map":{"version":3,"names":["React","useDebounce","value","cacheValue","setCacheValue","useState","useEffect","timeout","setTimeout","length","clearTimeout"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/form/hooks/useDebounce.js"],"sourcesContent":["import * as React from 'react';\nexport default function useDebounce(value) {\n const [cacheValue, setCacheValue] = React.useState(value);\n React.useEffect(() => {\n const timeout = setTimeout(() => {\n setCacheValue(value);\n }, value.length ? 0 : 10);\n return () => {\n clearTimeout(timeout);\n };\n }, [value]);\n return cacheValue;\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,eAAe,SAASC,WAAWA,CAACC,KAAK,EAAE;EACzC,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGJ,KAAK,CAACK,QAAQ,CAACH,KAAK,CAAC;EACzDF,KAAK,CAACM,SAAS,CAAC,MAAM;IACpB,MAAMC,OAAO,GAAGC,UAAU,CAAC,MAAM;MAC/BJ,aAAa,CAACF,KAAK,CAAC;IACtB,CAAC,EAAEA,KAAK,CAACO,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;IACzB,OAAO,MAAM;MACXC,YAAY,CAACH,OAAO,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EACX,OAAOC,UAAU;AACnB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}