{"name":"@ahooksjs/use-request","version":"2.2.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.2.0","dist":{"shasum":"3fddbd9e9f50e91b1b4cc4b5166432a43bab9af4","integrity":"sha512-JUyLADZAG6rJImajLsmj7M8Zq+cvK0t8JC6KCl0vrRXL+djY8VIfS6Xn/ispwj/695jgsMCOk83j49U9Own8kQ==","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.2.0.tgz","fileCount":69,"unpackedSize":126070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCwC9CRA9TVsSAnZWagAAP2QQAJl0bdnzLIU7v1YYwAxs\n50Lidx2cHUKarAyhXcVvUPbxTLQj2Zp2WDoYnxOUR0eLPB9IqaGkr22QwgRR\nO67/dcSWjYpRb/+DBgG8Y4OLqSMD+uD+6doHlvtECxkekaT2E8lMIJwKrNeF\nHYfj3VEODYs2LvMBV74marewNjKvXpDC+w+4mRh30Ouglzluea4yUae6g2xm\nYUge5Ujb57YTy/H04pSalv5KR2Z4rq614uk2odei2BGwIM66MGEc5aOf7U1G\nrTK9k1Cf6ArSHcmwVXq8erGZeuP0B4EA7ob98DKHyxhOoxGbMOhAoUgUQwJY\nIQj9imzboFc2u7KtFjx8Ea5+bqEcQSMvlUOzqX6p6lqVD8e3iWY+TZbtpsOr\nvKL5xt342l/On/SWBMj56sr0h3+Fl44l1AAoF3m1coe1G1B5dxRM0ClxsvHL\n0ewBfKGNKbIkYJDhJp9vfIT34J2Jq6lOCt5aGLRgqJxUVk9HY1QxqXxISFt2\nNTftg+KZs+vNkS5YLwMteFXLRriRj9RE/U9HeOlBdVFazjb3Rs3xI4iYjg5S\nXQDuI2+n/wAbVyjpAWdok2SQ3WrdA4w2j1lB+CAhUsKQLcFK+R4hVRj7RWLD\nZAOtyhbWUfCy0l14f5XUkcAj/ONq4c7/fYMY/dYSKjy0Sg+0C4I+ktwHZzB2\nA5H1\r\n=aIU6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgcLljVKQ+qdQ0A+mbHkgQjej41RuNIAtpFT2Enqf5rAiEA0vssZQiV0ipgK7kXybuxYhSX1fHDypv0ybyMG9E+xe8="}],"size":27560,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.2.0.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":"awmleer","email":"awmleer@sparker.xyz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.2.0_1594556605196_0.7507152332922864"},"_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":1594556605385,"_cnpm_publish_time":1594556605385,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}