{"id":16471829,"url":"https://github.com/abranhe/react-use-effect-async","last_synced_at":"2026-02-18T12:02:29.369Z","repository":{"id":37964451,"uuid":"425386499","full_name":"abranhe/react-use-effect-async","owner":"abranhe","description":"Async useEffect hook","archived":false,"fork":false,"pushed_at":"2024-12-09T13:18:33.000Z","size":13,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-12T21:38:23.107Z","etag":null,"topics":["async","hook","react","use-effect"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abranhe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-11-07T01:24:35.000Z","updated_at":"2022-02-28T07:57:45.000Z","dependencies_parsed_at":"2023-11-17T14:33:32.058Z","dependency_job_id":null,"html_url":"https://github.com/abranhe/react-use-effect-async","commit_stats":null,"previous_names":["abranhe/react-use-effect-async","abrahamhba/react-use-effect-async","abrahamcalf/react-use-effect-async"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Freact-use-effect-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Freact-use-effect-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Freact-use-effect-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Freact-use-effect-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abranhe","download_url":"https://codeload.github.com/abranhe/react-use-effect-async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233422984,"owners_count":18674089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","hook","react","use-effect"],"created_at":"2024-10-11T12:14:52.914Z","updated_at":"2026-02-18T12:02:29.356Z","avatar_url":"https://github.com/abranhe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-use-effect-async \n\n[![npm version](https://img.shields.io/npm/v/react-use-effect-async.svg)](https://www.npmjs.com/package/react-use-effect-async)\n\n\u003e Async useEffect hook. Just because I was lazy to create this hook on every project.\n\n## Install\n\n```bash\n$ npm install react-use-effect-async\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport useEffectAsync from 'react-use-effect-async';\n\nexport function Demo() {\n  const [data, setData] = React.useState(null);\n\n  useEffectAsync(async () =\u003e {\n    const response = await fetch('https://api.github.com/users/abranhe');\n    const data = await response.json();\n\n    setData(data);\n  }, [data]);\n\n  return \u003cdiv\u003e{!data ? \u003cp\u003eLoading...\u003c/p\u003e : \u003cp\u003e{data.name}\u003c/p\u003e}\u003c/div\u003e;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabranhe%2Freact-use-effect-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabranhe%2Freact-use-effect-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabranhe%2Freact-use-effect-async/lists"}