{"name":"@ahooksjs/use-request","version":"2.8.0","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@2.8.0","dist":{"shasum":"ff7deb72e4138b62e47635616acceef446ee5189","integrity":"sha512-y0fNa9GJXme73T3Jrc8XTaG+QJtAtr/YOOG0+JZDqo3Ts6IKAnjrLs4W+dr3muEouvy6/DBtKPeAxPAwl7Z9Mg==","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.8.0.tgz","fileCount":69,"unpackedSize":126969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfm8TVCRA9TVsSAnZWagAA6CcP/jKhbOy28hwGg00S3AMx\n7PqF5gyIWP2PzKfOJXeIdBZD45H1NvqUAFCpdVNbrb69gHclOgeQhLBhWv56\nNdCzpd4D0iGGpxNXqrBNqz86Lb8XBsKuE5bymqIgMDkjXb52xosxK6HZMeac\n6BK6OPUP1y1Xgusekbb3mKwAH6VVzXmzUbU0pqhT2kzXYc4npvoaw+nLxNHn\np1y6kdEMOctxpV++rT6oCCob/TTxdQfyEDsmRT+/qQ+OBw69yu112ZSZhakP\n2fEfRNarPipT6L1ziUK2V5pvtFJIdqI5PAc01f2CQCJuihfxPXK3EZAm7gbS\nNmvK7aeJHzH8dj7ii+hjVzGVfLr3pcoiFUA0l7ihf1hIMQQSFomioYkdSD5D\nLIt94LSZ/YnCAi/nhhcEf90JiVPjsUsU86c0cpPKWwswkNGFgXSyS+EHiNWG\nGgBVj1XbXe5K4RUZXqgwdbl7WtfKvH6dJLQdDg+ku2sJFAUv5XKPpQU/BYjE\n3my+nb6ltXAo3hDu0vhTKvSHfC0FImFwte2lk2UrOOVUbjB3OutebXKkWUf2\ndAIbOEXfCYeUhJPS+YZLNkfHIKh/KuJqxxZq28oNpYBuV0jwU6tVQHjRNh1b\n7vlIrdFT8hynfv6Mif9oWTUONQt/1GKGhFHvBsWmWL/rLHK5zgycfdZagDm+\naSOy\r\n=nfgP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDC1PA9kSAbCNvg4g6+9qTTkIDLIBXYswfTMZq1Iw2JZAiEAqoV45Q5rpAw4ANqjqJR7e7Y47FjdArkLlBHRF7WA5nI="}],"size":27965,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.8.0.tgz"},"maintainers":[{"name":"monkindey","email":"monkindey@icloud.com"},{"name":"awmleer","email":"awmleer@sparker.xyz"},{"name":"tli4","email":"a@tianyi.li"},{"name":"fan576679268","email":"576679268@qq.com"},{"name":"chenbin93","email":"chenbinad@gmail.com"}],"_npmUser":{"name":"awmleer","email":"awmleer@sparker.xyz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.8.0_1604043989506_0.7966877474718177"},"_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":1604043989675,"_cnpm_publish_time":1604043989675,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}