PromoCursed/node_modules/.cache/babel-loader/c2894d6195b336d700b72729f5a12e0879f82d38459e95220aa2eb38d9895acf.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/Аришина)/source/repos/PromoCursed/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":[]}