{"id":30181011,"url":"https://github.com/streamich/use-unmount","last_synced_at":"2025-08-12T08:07:06.220Z","repository":{"id":57388483,"uuid":"293275573","full_name":"streamich/use-unmount","owner":"streamich","description":"React hook which returns unmount observable","archived":false,"fork":false,"pushed_at":"2023-12-15T20:29:13.000Z","size":132,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T03:07:05.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-09-06T12:47:52.000Z","updated_at":"2022-11-18T16:32:23.000Z","dependencies_parsed_at":"2024-02-05T10:16:27.599Z","dependency_job_id":null,"html_url":"https://github.com/streamich/use-unmount","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/use-unmount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fuse-unmount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fuse-unmount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fuse-unmount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fuse-unmount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/use-unmount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fuse-unmount/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270024697,"owners_count":24514054,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-12T08:06:29.648Z","updated_at":"2025-08-12T08:07:06.208Z","avatar_url":"https://github.com/streamich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-unmount\n\nReact hook that returns a single RxJS observable, which emits once `true` when\nthe component un-mounts.\n\nInstall\n\n```\nyarn add use-unmount\n```\n\nUse\n\n```js\nimport {useUnmount$} from 'use-unmount';\n\nconst Component = () =\u003e {\n  const unmount$ = useUnmount$();\n\n  const onClick = () =\u003e {\n    createUser$({name})\n      .pipe(takeUntil(unmount$))\n      .subscribe(() =\u003e { /* ... */ });\n  };\n};\n```\n\n\n\n## License\n\n[Unlicense](LICENSE) \u0026mdash; public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fuse-unmount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Fuse-unmount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fuse-unmount/lists"}