{"name":"@ahooksjs/use-request","version":"2.0.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.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-tmiu7TdjbIRwpLMOZGKtputvMxFjT+sse9+UqBgj7BGdPJ1864fxDJKZ/mL6KsYzEYKTmcT8mLlo/TGr6Azvrw==","shasum":"7d5fb3be0df527311e70d279cc5bb950cc97b78d","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.0.0.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\nwsFcBAEBCAAQBQJe6C4FCRA9TVsSAnZWagAAOMoQAIAc0+ikic55xewESNtL\nKctWEQCeWwcxeojpNT2Mw7lchLMOcLuJhiPG6zXu/3lXX9gwE8odxsiS+Zu9\nDm4T04Rp544Mzh39hFWtg7i8f4NRAlxC9LSaICe7I7993CikzVpmtuT9MmOF\nuRkhlXwHU7pMhentI6PUwGUNE+2UnloEGqG4GW+v4vu9qkIQ62VSjGh6JX4K\ndxPCg+BKBKSoTU9Evdcx2JOlHOiutpPy6jk+QJgF35UGbKRoPYIAFGGETvBp\nC/OHrLVYgD8FkmKLGE0fb3k9XNkk3tgM8ORRhV6qDHNEBW6E2suxUxWyxHnD\ndikiiLn2PxNXksqMVdFzeuFVExwwj5tW2csd9zyY2264OzlafT7DEqN8HTFR\nbGuFkugteENyuX1LWQx1D5jrSmTol2g8E5rYSpXhLbJClbIA22UTQaMux0cu\nuTTJ4lIp35yC6Qt9EBdGFIVhYa6HGb33aFNPAFsPs6Z1U/fmw1/hiT2ukSeu\nxwi9tHnyugJmbcp9287ln9LUvfal/6fg00a7zQXX3rcxWsakkQr6rInU2Q21\nIZ0h9AQCemo/+8PPMmYfL8pXrBzFGWZeOIAMPWa1nHdPjKARfOPoiqT8llQn\npg8H7XO0yyS4ksCI7NaOJGPIr3CF8RgTE3HA32/szVpcYvptPju4b/iySmdX\n9cbU\r\n=ZEQZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBV0KvGpYwf0SiFGHHMUUAHAsyUXeqQzpLeqN2EIVi8uAiAa7YbJ5bgK6GbmMXK4mN39RMK3bhWtkNE997okzK020g=="}],"size":25788,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.0.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":"fan576679268","email":"576679268@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.0.0_1592274437122_0.07246788679059057"},"_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":1592274437248,"_cnpm_publish_time":1592274437248,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}