{"name":"@ahooksjs/use-request","version":"2.8.5","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 || ^17.0"},"dependencies":{"lodash.debounce":"^4.0.8","lodash.throttle":"^4.1.1"},"devDependencies":{"axios":"^0.21.1","umi-request":"^1.2.17"},"gitHead":"561ebf0c820fa5fd6f1a8e83d6a8de3474254921","_id":"@ahooksjs/use-request@2.8.5","_nodeVersion":"12.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-UaO9T3rl1bGA+2jzoocEONgs/5Fr3fZ0xlanyoucnatoD3SKOR/m1ATpUq5tk8JMgGpBVL/QspG9I+tp71fFqA==","shasum":"efc342b532d97d756b5e4a8b59153baee7baecaf","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.8.5.tgz","fileCount":63,"unpackedSize":127308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghlnkCRA9TVsSAnZWagAAo1EP+gIPVqfyoaKwcLaQu6bn\nlUkYjtp2b6tQrQ3xg4wlhOucruiSWv35BrjvyBBXSk0923OIutJhpmMu2IC8\nx1mz2ce+VErWwO+v8qAmICEIENf94ytciiOtXk9PO39BNYG6l5t/wswpxf0Z\nN8+DWVeSsZKgwciO2x18FS8H3a6vWKRFlawJuZuVEfhcsCXqKwECjsancQLt\nDuRbR6ho0wUImM76ommkMckoPJmna4zDRCnzasFBkwXjkclk9ULaKhARF7Vq\nZP6Y8E43EsNUNdD//4YaBq08NY7IEf11FeVGcu1YfqkG4aAnEynWbUKImxVE\n7kmglpG++xvB9uhTWH+Qs5tGbejRwDSWDPIjohVaLxZddcajHFhu5otjYRCQ\nx5S5TZpdyGcotEBiOAJjjVlJoeED+dV+bE4LsCifHxr1EnRYt6jvljurKNu2\nnugAd41gEffzN688f+PyypsiUDo4Riod/+028/ypqMtMT19n8+tMfhNXzcN0\nlrquN01lIJCHRVM6vuNgz7/9WL9GjtEKm2HcPHH1ecMbvnaE4XKNB+lWiIKa\nsQ6mZS5PDYO38RCGbVOoCrlfqzybihGEYYUd2nz/UQCHV9LVnBj/FJ6AAFv3\n06nen3ESs0lz0QbE2Ke3PmJO1H5ghndYd+eN0jjpsTi21cFjrwDSCaa8TfkD\nqDBQ\r\n=SEor\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDolgwlI2feeFWPb5hcQ1X69HmpE0Uc0SPY8OBfejmZrwIgIsKS4SWRqg8Xs3fcEAPBzjAMt7aWU+3ZmXH6PKVOx4k="}],"size":28883,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.8.5.tgz"},"_npmUser":{"name":"fan576679268","email":"576679268@qq.com"},"directories":{},"maintainers":[{"name":"chenbin93","email":"chenbinad@gmail.com"},{"name":"fan576679268","email":"576679268@qq.com"},{"name":"tli4","email":"a@tianyi.li"},{"name":"awmleer","email":"awmleer@sparker.xyz"},{"name":"monkindey","email":"monkindey@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.8.5_1619417571508_0.07869125858788584"},"_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":1619417571631,"_cnpm_publish_time":1619417571631,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}