{"name":"@ahooksjs/use-request","version":"2.8.11","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.0 || ^17.0.0"},"dependencies":{"core-js":"^2.6.12","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.11","dist":{"shasum":"16a55dce97a6984317a0f681dde28d07b6d86888","integrity":"sha512-9kIHhbE54Cx7tHIdNpTqFKe5m5TD9WIKKAfpDOVRjm3mXcJI5SvShrSqOWOcolHrHtdn58VOJxBoYZAVxorsUg==","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.8.11.tgz","fileCount":73,"unpackedSize":160880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdFH+XV8EvnPXtLip/yTwNqKpv5p0cl/a6mrKm8nFwbAiEA7WxlAQBfQ3DqjGT01MIuhPzhPD2aC2qytohBUOzgjBw="}],"size":38721,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.8.11.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@icloud.com"},{"name":"monkindey","email":"monkindey@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.8.11_1632210631806_0.9981855653292686"},"_hasShrinkwrap":false,"deprecated":"revert","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":1632210631968,"_cnpm_publish_time":1632210631968,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}