{"name":"@ahooksjs/use-request","version":"2.6.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.6.0","_nodeVersion":"12.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-RW11mqoAhg2uh9gA7Ws3eruGw2gH7qm/6eBSUlV2GvGkA2c0txLACIYElY3NfgT+g+JZQ0JhhpJTqVAx00HqJg==","shasum":"7f7fbc1182df80db47d61e500468644b2ea43596","tarball":"http://registry-npm.ywwl.com/@ahooksjs/use-request/download/@ahooksjs/use-request-2.6.0.tgz","fileCount":63,"unpackedSize":126969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV3wQCRA9TVsSAnZWagAAHokP/2qrz5L/BM/BfhsednFK\n73g8ABeYx5DCLyGVjSRdrcXCHCT4UaaDKUFcgvCNhelteFfdZIPQbizK/hn9\nbpuPL//H8XZ40BhHj2jwqPzd55ziyi4U17rFwL0gI7A9e1r/ahv2fva6182i\ntx46bQ+ZJW4s5aqHmxIBPV7pOyLKCBkyI9EdKG5Ecejbgo/SAXZJ83tBOaVk\n0/DN4YnvRm2LtUCWr4IcgQnR2gpVSldJ5wLFZWE4c8ifignggxqEr6Wxrw6C\ndXUEj0CyQyUMVx7Z7W9P1G3qtWAGuJr1E7BDuKiE/HBwDUmzp2IHa2qrP1ej\nDm65j1YfW9b/XddwW5nKlyFtsQd5tJRL0Br0IUa+TQztKDaL/pjESXKd55o4\n4y/i7Ngr0VNETG51h6ZjDyNQkzal6CdjZB3qjx81Ubu4B68R6tufgy2g6Iyc\nAR4qGh8PDnc6dMfJIJoPi0fUd2acyCht7NUiZQdRpwCNXl9gdIjqcDgjJx+a\nd50wpCRRz1Msux9IrIZzaNmQWEKzLOVyQAM93Ky5mg2QIsjayFQsoFTY5QOS\ntbUpNJDM39bZfpj/ZXbpQPel5qd6f4fRefAAi/ywgoSxUbSQWjP9b6s1Xr3W\ntt7NzYkmoGr68J8t4smLOwYj9T0X0OjNqUjCFzviOVoM4phFtSa0V8hE5B9m\nR7+V\r\n=8XOR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5fCs2FHgZXsaqV6y9h2N+dvW0sRB+fC4oYonMfX39hAIgBpK1J2GSizZ4nt13RoTEuV4tzZ0hwVW1mpAGxCkWX9s="}],"size":28809,"noattachment":false,"key":"/@ahooksjs/use-request/-/@ahooksjs/use-request-2.6.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":"fan576679268","email":"576679268@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-request_2.6.0_1599568911990_0.12257073436498955"},"_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":1599568912108,"_cnpm_publish_time":1599568912108,"dist-tags":{"alpha":"3.0.0-alpha.0","beta":"2.8.11-beta","latest":"2.8.15"}}