{"_id":"@alifaishol/use-async","_rev":"5-cc96f6067440e6096bb897d4651410ba","name":"@alifaishol/use-async","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@alifaishol/use-async","version":"1.0.0","description":"React hook for managing async function states","main":"dist/index.js","scripts":{"build":"tsc --project ./tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","lint":"tsc --project ./tsconfig.json && eslint --ext ts"},"lint-staged":{"./**/*.{ts,tsx}":["yarn lint --fix"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/alif-faishol/react-async-hook.git"},"keywords":["typescript","react","async","promise","hooks"],"author":{"name":"Alif Faishol"},"license":"MIT","bugs":{"url":"https://github.com/alif-faishol/react-async-hook/issues"},"homepage":"https://github.com/alif-faishol/react-async-hook#readme","devDependencies":{"@types/react":"^16.9.41","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","eslint":"^7.3.1","eslint-config-prettier":"^6.11.0","eslint-import-resolver-typescript":"^2.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.0","eslint-plugin-react-hooks":"^4.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"^16.13.1","typescript":"^3.9.5"},"peerDependencies":{"react":">=16.8"},"gitHead":"57b6bcd855476b11e753cc4be14ac515d7f0da74","_id":"@alifaishol/use-async@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ePOoaJCXRKvg0jLJzAUu0IOiVkDx+8G0vbIliI2mtbAmDIffJixDYuVTO3d7rQjTjdg4gL9nxPUUf78iHJ+RQQ==","shasum":"2fe0e41080f6ab021cb193c7f3f6c091693252b9","tarball":"https://registry.npmjs.org/@alifaishol/use-async/-/use-async-1.0.0.tgz","fileCount":7,"unpackedSize":11658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9UmqCRA9TVsSAnZWagAAaZwQAJND2aU5sIeomXeHAiX5\nD/hNnIdhXLDl8afv3hWMCHZKYovKe8qb4TVpg8Y6cwLOUMUo3/L06q8wj2dk\nDBmcnt2MMG3xbb4ff2pdsBlrmQJblJW48itNH1wpIdZ9zYUsYhlJnt3ILj0k\n59T3bueHl+4IldrUnxrpxuxL/Jb8Dk3S3fZqRrv6u3/JYFuQkwODAHxTEdXs\nzBmeomnuZ2QAjhV5ZKIrwM4nWhn6RmTFFe/G62nCT4w4F6zno11DBHzuVTG/\n42itg0V8sGeZ+/A1L6AFDm7tJJOvHOuDg3Uy5JtcZxFKCVK4gzqEgWEnVWfd\nMvs+hFP6wLdYvAbgG1bkTrlINXQCBmqcacpqvdmNi91HqZ6TU8jazn3KvAqW\nxkS4c3DnDflYxndTmOX89Jy+oEbgWRsjZJHcO6tXrmpJ4NMOjGimrF4o/WsB\nU5BceQx49U2f6mFsoF/u8wXfq7dA0ZUeuMjkDvDNi44IzDPIEMwDqSjSaoWm\nGuMXgYfIQwe7kYLhGU8MuuTf14GJvLWf2tb7Haha8ne0OGKVFLLecCSOCGKJ\n3gFoaNTH77vl5HdOhfxhAQCNcu8cJfDZlNXferULi7p3N1UC6Vp8rriBnCtc\naXMx/Dr3vVpj6SyRk6o4nt0/feYbeC8Y+00v3AVKSROtRoACQHSFD86rj7/0\n23To\r\n=6VZU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxVpWZRySxRfxVg5zYPmdEgbQZzViq4YoDrI1AlHxn0wIhANP84NvOckxa4opoomHjkMUYzRRe7URw60vLQJksm9Xj"}]},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"_npmUser":{"name":"alifaishol","email":"alifaishol@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-async_1.0.0_1593133482424_0.7630816930921231"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alifaishol/use-async","version":"1.0.1","description":"React hook for managing async function states","main":"dist/index.js","scripts":{"build":"tsc --project ./tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","lint":"tsc --project ./tsconfig.json && eslint --ext ts"},"lint-staged":{"./**/*.{ts,tsx}":["yarn lint --fix"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/alif-faishol/use-async.git"},"keywords":["typescript","react","async","promise","hooks"],"author":{"name":"Alif Faishol"},"license":"MIT","bugs":{"url":"https://github.com/alif-faishol/use-async/issues"},"homepage":"https://github.com/alif-faishol/use-async#readme","devDependencies":{"@types/react":"^16.9.41","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","eslint":"^7.3.1","eslint-config-prettier":"^6.11.0","eslint-import-resolver-typescript":"^2.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.0","eslint-plugin-react-hooks":"^4.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"^16.13.1","typescript":"^3.9.5"},"peerDependencies":{"react":">=16.8"},"_id":"@alifaishol/use-async@1.0.1","dist":{"shasum":"43989213cd73e0f8b003abd0cc05373b30a60178","integrity":"sha512-7sX0WoqEDZ1pSV2DmyKD/fMhz6GPBfej5/AqFWq8ZdofzTNFLElZyXz0/IPgxMFy6Qwhle2UsMlBbVx1mg5ZmQ==","tarball":"https://registry.npmjs.org/@alifaishol/use-async/-/use-async-1.0.1.tgz","fileCount":10,"unpackedSize":11166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAmpwCRA9TVsSAnZWagAAUPkP/jYY0LEuNehiRmYpVYPz\n4cwJZk55S5nenXiU3umiZn+SE1/gNc+SLYE9tS/Zhow+AVfTHo2DNJRAYBOS\nYjei42io51x+GylrWPRjAp1c0szKIr4Igy/KFrgTaeqZG4HyqcD54uTjFvSn\nn77f/hH+Fc0YM4SBGPB/ruN3NT6ebLvDkBsIO0h7OBqCr0FAniagfdQk4L/8\nQFxzJe+kBR4yAiQEUX52fjRBSMLFqW5/N/hgyr7d0Wy18joyurhz/46hF9bH\n9wzLMXKj81yF2JN2UX97/7/Ai/inpySMu9E9W8ZWVy+91r8T3QQAnpdqOGdP\nHGv+haajpaMiI9ZBJjuVsjP1ZXfFvEf3DcjjcLhkEQg/tCgnn5XuSIDxwu4E\ne9RLvBiHeiHHea5T8yJvQnhH86X6RxUGK+WQ+r0X7QgsfgYPLSZmtKlqdlQs\nQEyxPcfMLSs+bSKdMzbWHnIJTsl+KRhbqvSwPm6vslOcmPKMaHWbDD/DwYYS\nwMukJFfTmJFj9Equ7tSgRroB87e+QUHLURjRvDKeKENvPll62aDmqoGyXUa8\nJAnauHAbPoG+Dkg78SJrFd/6tZ60s86F7wem7wEe2mAEmcav8ROeTseYsDAk\nRiHoiO7cZMa/QN0pbQpPh1IjJ2u3kz1L/KMMaiY3mCF+AgfKpd1uUQbcNhti\n7O2o\r\n=fCY4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTkr8uuQRlhU6XJ6sDnbuPBPtYN8WiktC5E6MXECfJtAiEA9Zh5g3NC3bSE67wNrMTZApYtalK3jnl27L5btgZf8bw="}]},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"_npmUser":{"name":"alifaishol","email":"alifaishol@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-async_1.0.1_1593993839709_0.6061656743682191"},"_hasShrinkwrap":false},"1.0.2":{"name":"@alifaishol/use-async","version":"1.0.2","description":"React hook for managing async function states","main":"dist/index.js","scripts":{"build":"tsc --project ./tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","lint":"tsc --project ./tsconfig.json && eslint --ext ts"},"lint-staged":{"./**/*.{ts,tsx}":["yarn lint --fix"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/alif-faishol/use-async.git"},"keywords":["typescript","react","async","promise","hooks"],"author":{"name":"Alif Faishol"},"license":"MIT","bugs":{"url":"https://github.com/alif-faishol/use-async/issues"},"homepage":"https://github.com/alif-faishol/use-async#readme","devDependencies":{"@types/react":"^16.9.41","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","eslint":"^7.3.1","eslint-config-prettier":"^6.11.0","eslint-import-resolver-typescript":"^2.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.0","eslint-plugin-react-hooks":"^4.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"^16.13.1","typescript":"^3.9.5"},"peerDependencies":{"react":">=16.8"},"_id":"@alifaishol/use-async@1.0.2","dist":{"shasum":"84ac90f1eb5c53d5d29334145aa37f912fe2cb3d","integrity":"sha512-Lp+Used8KztG4hHMUbNS6lT+bw+oHQYUbtsAq4BqFOfctOmKTElDGWeXdLbFphi6R3tikXj3p2RfP8pQ3hSs+w==","tarball":"https://registry.npmjs.org/@alifaishol/use-async/-/use-async-1.0.2.tgz","fileCount":7,"unpackedSize":8701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAnDTCRA9TVsSAnZWagAAB1IP/1Aw2+rh5sAOgUu+AC3A\nXIUGIo2SKK8L+Np2dVz1aGTg0e2qUFNWODb4fhF0vgIJuh46fqYyd0PQXVTM\nSLTG83UBDmxQjEE/D5W0zuU5nYNA9Ttmk+Wu1z0ejFSy+b96FrtLnrSZ66yI\niL4FjZJhym4D0tpue0RyzmbnN62I+vmZwMADB1HeV9qdwCOx25lm8lEwWol5\n9eQsuFqeNlBFSpiol4r17/wFXPCxQee/+7FRIhrZFweKbFnkwLwOKKGLyvYA\nbOOXa5SH9iaLPpxMbaWDm1Vd0d+mLT05Ku1MikpzUY7YtucEQgQfzD6RllFY\n786QVFfVoUTq9ZxQdLX1hOFATZb3xUl2YJdlVu6hDI/N+lKMhCjSchosBnTP\nvqxLa/cp6pzDVkAT9x4uMy1q36q4hp6hXXa6o19asu9UVUGOkQaSOBUqtDRF\n2GWO0tso8g6QMY2ZZxOedNWbfOKZW/KHIEA08C/QPnpzZ6/RzVfJE6Ql5PFg\nDyBIvHACOmMVrdm2IGh5ZbuuDquho0gKB0e7pEZjDGsL1qlGNddtt5OkAaoe\nrMIo4zh1Z/lghDgDJq9g2nalArcpMczcF3g01FHk1vyLkfYmI8zQCFEtGp/+\n/j8I+MFzxALbIB8wqmVd02dfOBPkVE/YrPZNbR5nJYplWuIaNNA4V9++NAk+\nqh9B\r\n=/diA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBSIa/pqPz3nVGb7WZDTORx3+vt1iesVq8nII/umduLzAiEAr3gkoWTVs6kfrgbW4AS5K51utsOPt+vPKOEsHyjK2Hw="}]},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"_npmUser":{"name":"alifaishol","email":"alifaishol@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-async_1.0.2_1593995474479_0.39447437679461106"},"_hasShrinkwrap":false},"1.1.0":{"name":"@alifaishol/use-async","version":"1.1.0","description":"React hook for managing async function states","main":"dist/index.js","scripts":{"build":"tsc --project ./tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","lint":"tsc --project ./tsconfig.json && eslint --ext ts"},"lint-staged":{"./**/*.{ts,tsx}":["yarn lint --fix"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/alif-faishol/use-async.git"},"keywords":["typescript","react","async","promise","hooks"],"author":{"name":"Alif Faishol"},"license":"MIT","bugs":{"url":"https://github.com/alif-faishol/use-async/issues"},"homepage":"https://github.com/alif-faishol/use-async#readme","devDependencies":{"@types/react":"^16.9.41","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","eslint":"^7.3.1","eslint-config-prettier":"^6.11.0","eslint-import-resolver-typescript":"^2.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.0","eslint-plugin-react-hooks":"^4.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"^16.13.1","typescript":"^3.9.5"},"peerDependencies":{"react":">=16.8"},"gitHead":"69a20fbda8a5a5b04ec0ddc574f3960f1fe698b2","_id":"@alifaishol/use-async@1.1.0","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-y6zy/msGmrmBDkJqTA2zqB7l0bFgTIDpUkaAj7OMlflZy4C5rcL5SQJvGKG6lhDxIKqDo0Gda9rbLsMGc3YKfQ==","shasum":"d433e079d196b75a4303228a6b0bcd607007fdb5","tarball":"https://registry.npmjs.org/@alifaishol/use-async/-/use-async-1.1.0.tgz","fileCount":4,"unpackedSize":8947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1w8HCRA9TVsSAnZWagAANRIP/1+VLCOCUcekJXkG9Qi/\noDLaWe6bb9Ea3cg7vrQNB0TJYt+nWouud2dj8q4FS6hX5lMjomyOhUantUmp\nORTeKqQHzK2kJE1zxXcien2ptRjuZ8+bCavWl7rmPi4BZphVwiAfhwoSMBFq\ndCUEShVgdQzvk1KHCfu22vQQkkwkcfifYaxktXCe8/n827TgawzBeQ+n2kiC\nbSZjqViQS9v0DXXZsDVJg+KqidIKdpR0lBNa6Y6jBigdDilIC6RUbwHs876f\nWMewTTrghujWMvEyC0axCDZ2zqTWEQOdO3zsskDB30c40ax1pBlT4fFilHFE\nOIocN18Dp2HsJD/iunt2u7UT96Ai7RQ2D3jPAf9kU+QlnCNjQyeAKFwO1MZy\nxf3YjqpKVwLbMya0Gd/1XwlVwK4E54ovRgmlABgtjBUVzYABEpwjCZU+OGhi\n4FyQgNsBbrtlqRjPeugjOazUQhnuRfl1Is1FXfCyVbN8Htu9kD5pI3h685Ka\nE+ZltlHrmRsE0G4QM3EmxtpTJ/OqQgf2wNjH6Anx84nL+OzUFo5KIl+dNphl\nIc7yCnhndDTYNukWYCQ+Lu3YUuQ9xAfvrMnliW4sFUOG0GBb1t0jvR/uAX9P\n037rdl1KPTGsPnjzcDqyxp2J+ia6Roj9APftOsog3dnRE0LKz6DumAZVf+pJ\nmn8k\r\n=h8Eh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiFpvRNUbOoewVqsNhqY+Pvx0bIzzH7z5st+8d9E0howIgBtTRs68t8l9oXcNQ7v7Dju1BSZLRY3hcmAhHu6UMMdQ="}]},"_npmUser":{"name":"alifaishol","email":"alifaishol@gmail.com"},"directories":{},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-async_1.1.0_1607929606473_0.10162009994860655"},"_hasShrinkwrap":false},"1.1.1":{"name":"@alifaishol/use-async","version":"1.1.1","description":"React hook for managing async function states","main":"dist/index.js","scripts":{"build":"tsc --project ./tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","lint":"tsc --project ./tsconfig.json && eslint --ext ts"},"lint-staged":{"./**/*.{ts,tsx}":["yarn lint --fix"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/alif-faishol/use-async.git"},"keywords":["typescript","react","async","promise","hooks"],"author":{"name":"Alif Faishol"},"license":"MIT","bugs":{"url":"https://github.com/alif-faishol/use-async/issues"},"homepage":"https://github.com/alif-faishol/use-async#readme","devDependencies":{"@types/react":"^16.9.41","@typescript-eslint/eslint-plugin":"^3.4.0","@typescript-eslint/parser":"^3.4.0","eslint":"^7.3.1","eslint-config-prettier":"^6.11.0","eslint-import-resolver-typescript":"^2.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react":"^7.20.0","eslint-plugin-react-hooks":"^4.0.4","husky":"^4.2.5","lint-staged":"^10.2.11","prettier":"^2.0.5","react":"^16.13.1","typescript":"^3.9.5"},"peerDependencies":{"react":">=16.8"},"_id":"@alifaishol/use-async@1.1.1","dist":{"shasum":"0cb974ad069f1bbd0c2bec1b0d1e2b6497ddd1eb","integrity":"sha512-r+XXLEtcjfhpoqBi8SLSUyYE5FjLeHUjeRBs5tqVDZa6D9TS07VKTWzbr6hQNP3r3v51s74Nww9kCjScjl/7lQ==","tarball":"https://registry.npmjs.org/@alifaishol/use-async/-/use-async-1.1.1.tgz","fileCount":7,"unpackedSize":9060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkNs/CRA9TVsSAnZWagAA5FYP/R951aKTLzJNp7cpJ/Y7\nzp80DMSNuhQLJJhjw8WhZVBu4mRZju9MyxkUFC7PMoWxUADjbQgCJ3hDDSer\n4B39SYhpaWkxbI8Q6HK8sufBAEceRJVMZ8LktwrnDfi4dskZ/5f7rkLuSBPv\nkFRbM4GKK56rTQ9QYqolVr7+6NLlSy1EZnVAKCJDyrZCKRcf4siLEck3IKXm\nc2Jo/bNXZCfIIe9cSrBeyH5uDbH89XVzbdpW/qvFfkh78fUSS01t3TxXJlog\niw1j716I9GgB5Bb28pC0IqJlI3svjp/i6q2F2WAaq+cR33jevk3BCm7oKQ1G\nX38YmawtEtcqL5YjvMBDxyp0Z9s7mFQDjBWm3/aMIUg5pShL9b6+XjHy4xy2\nZxvkrznpw951m3rgeQ7OmRiPAMwahhTMegBiRIr/46RcnW9T+hRuAveUySep\nzW/S5VigMKefSaejakcGQO7eREAAx8nnknwp8nv+cIsOr068/hkUOya+JUR9\nXNkxcu214WJTMi6rOWt7ApLHrVCAcLLXmjolDc9GBfCEGQBuMPBmBRth8A+f\n6Im1G2JCac8JsijMHddywr2iopJeYUp5Ky0Ynk+sExLXQiqp9eMZqlmFOz0K\nvsZkxRIiHBZFgNZ02wUB23Y8Xgwhf69nzNMsQ+ZkpiOwslKsAJ0QHT/GLHeR\nzYC3\r\n=PkAV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYIMZOlQC45rAVuvKYF8L8kciSjvqA5A4i4QnDRgEf2QIhAK5/9yV74/feSZeGYlgzWDWqPH6V1C+V9Mrg7fytZAir"}]},"_npmUser":{"name":"alifaishol","email":"alifaishol@gmail.com"},"directories":{},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-async_1.1.1_1620106046801_0.641038628210304"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-26T01:04:42.369Z","1.0.0":"2020-06-26T01:04:42.617Z","modified":"2022-04-04T12:59:37.127Z","1.0.1":"2020-07-06T00:03:59.824Z","1.0.2":"2020-07-06T00:31:14.641Z","1.1.0":"2020-12-14T07:06:46.673Z","1.1.1":"2021-05-04T05:27:26.913Z"},"maintainers":[{"name":"alifaishol","email":"alifaishol@gmail.com"}],"description":"React hook for managing async function states","homepage":"https://github.com/alif-faishol/use-async#readme","keywords":["typescript","react","async","promise","hooks"],"repository":{"type":"git","url":"git+https://github.com/alif-faishol/use-async.git"},"author":{"name":"Alif Faishol"},"bugs":{"url":"https://github.com/alif-faishol/use-async/issues"},"license":"MIT","readme":"# React Hook for Managing Async State\n\n![npm](https://img.shields.io/npm/v/@alifaishol/use-async)\n\n## Usage\n\n```javascript\nconst options = {\n  initialData: undefined,\n  onError: (error: Error) => undefined,\n  onSuccess: (data: Profile) => undefined,\n  initialLoadingState: false,\n}\n\nconst {\n  exec,\n  setData,\n  state: {loading, data, error},\n} = useAsync(Api.profile.getProfile, options);\n\nuseEffect(() => {\n  exec('params for the original function (getProfile)');\n}, [exec]);\n\nconst logout = useCallback((): void => {\n  setData(undefined);\n}, [setData]);\n```\n","readmeFilename":"README.md"}