{"name":"@ahooksjs/use-request","version":"1.0.1","description":"React Hooks for fetching, caching and updating asynchronous data","main":"./lib/index.js","module":"./es/index.js","types":"./lib/index.d.ts","unpkg":"dist/ahooks-use-request.js","repository":{"type":"git","url":"git+https://github.com/alibaba/hooks.git"},"scripts":{"build":"gulp && webpack-cli"},"publishConfig":{"registry":"https://registry.npmjs.com/"},"license":"MIT","bugs":{"url":"https://github.com/alibaba/hooks/issues"},"homepage":"https://github.com/alibaba/hooks","peerDependencies":{"react":"^16.8.6"},"dependencies":{"lodash.debounce":"^4.0.8","lodash.throttle":"^4.1.1"},"devDependencies":{"axios":"^0.19.2","umi-request":"^1.2.17"},"gitHead":"561ebf0c820fa5fd6f1a8e83d6a8de3474254921","_id":"@ahooksjs/use-request@1.0.1","_nodeVersion":"12.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vkDLYzWlODerloZ9R8DyZcdaH1X4FvxX0xLguRhHPP7g0jZcXPs+lLTg7LtOmXDIqL/8SG+Fd4IFW9WbCQ/Uzg==","shasum":"622103678f3a2b603c89ef1276412f4a7064902d","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-1.0.1.tgz","fileCount":62,"unpackedSize":103443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe42oOCRA9TVsSAnZWagAAPUcP/iqkvZar3z7EQDZFTXIx\nXMhU5lHVtCDuEbRYyrptTAxeH6B6enBz/+5ksUFlAnTxMQckMCOaQ5LM4HwW\nj0eWGW7QAlSXjq1qf0ZyWolX9awiTiNJPkD2kj5lHRSS4qCc2f2rayl/ChBk\ngc3A0EJBO3gcvBIqo3sdLXVauyzoDr9YuAmr8KeC2oi/2IRS+p0gqxgT0Ju9\njWB7FJwbsTyZyhv/GnqxHtSSC85aFCWrLNfJJlwIwUPsX1Yuw3KNnBIB+rPi\nVBnEiYal6seUdgYsyEjE4t6rA0m55yEyi2yEBdOY68hJlOUEsHRS+aYBkMHx\njkOQAp7T1bhRzeboL/MIaSLezSqvntVvv839FV+qtiAhbqnTknYTK1pTAH67\nOjHav8okaxsy87mx82+nwi4t0pL5LcExQq5bZLfqv2b+L//enzHfeKm7VKh4\nOD96C4WLdhoY5I5xIdN6ZigkbeofLlycI+SvChNvlMcIvCXr21BbHORxM1FM\n7i8IkcyB4Vl8+vQnYz5Ve3FefRBjlwo8rJC0AopYbO3nvlDBgk9tJS39yCID\nVt0r0gii/VoE9yN5tthKPvLOqj869oDRSiFqG15+f+9htKLqQIADYwI4NkcL\nSLvnR3PvV0a0MsFSny/SuWX3c2W84A6tQvpUq4tOjqjiGlzCdtarHE2QBRUN\niAv6\r\n=cmYO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkj713z28s2BpH1m8mGhqLW6X324V1g62+rzrjSBOfeAiEApjY9OmffFHvrOPb2IFYNC1cVTqOu/9UOm1atx+ppO5A="}],"size":25788,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-1.0.1.tgz"},"maintainers":[{"email":"awmleer@sparker.xyz","name":"awmleer"},{"email":"chenbinad@gmail.com","name":"chenbin93"},{"email":"576679268@qq.com","name":"fan576679268"},{"email":"a@tianyi.li","name":"tli4"}],"_npmUser":{"name":"fan576679268","email":"576679268@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_1.0.1_1591962126377_0.8476474712115725"},"_hasShrinkwrap":false,"readme":"# useRequest\n\nProduction-ready React Hook to manage asynchronous data.\n\n**Core Characteristics**\n\n* Auto-triggered request and Manually-triggered Request\n* SWR(stale-while-revalidate)\n* Cache / Preload\n* Refresh On Window Focus\n* Polling\n* Debounce\n* Throttle\n* Concurrent Request\n* Dependent Request\n* Loading Delay\n* Pagination\n* Load more, data recovery and scroll position recovery\n* ......\n\n## Installing\n\nInside your React project directory, run the following:\n\nyarn add @ahooksjs/use-request\n\n```bash\nyarn add @ahooksjs/use-request\n```\n\nOr with npm:\n\n```bash\nnpm install @ahooksjs/use-request\n```\n\n## Example\n\n```javascript\nimport useRequest from '@ahooksjs/use-request';\n\nconst { data, error, loading, run } = useRequest('/api/user');\n```\n\n## Documentation\n\nhttps://ahooks.js.org/hooks/async\n","publish_time":1591962126523,"_cnpm_publish_time":1591962126523,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}