{"id":24113735,"url":"https://github.com/ludvigalden/use-cleared-memo","last_synced_at":"2026-05-04T21:37:33.707Z","repository":{"id":57387913,"uuid":"260903881","full_name":"ludvigalden/use-cleared-memo","owner":"ludvigalden","description":"React hook for clearing memoized values on unmount and when deps change.","archived":false,"fork":false,"pushed_at":"2022-06-04T10:12:15.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T09:40:13.189Z","etag":null,"topics":["clearing","hooks","hydration","memoization","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/ludvigalden.png","metadata":{"files":{"readme":"README.hbs.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"ludvigalden"}},"created_at":"2020-05-03T12:01:13.000Z","updated_at":"2023-05-24T20:16:30.000Z","dependencies_parsed_at":"2022-09-14T20:52:20.556Z","dependency_job_id":null,"html_url":"https://github.com/ludvigalden/use-cleared-memo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludvigalden%2Fuse-cleared-memo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludvigalden%2Fuse-cleared-memo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludvigalden%2Fuse-cleared-memo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludvigalden%2Fuse-cleared-memo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ludvigalden","download_url":"https://codeload.github.com/ludvigalden/use-cleared-memo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241133232,"owners_count":19915367,"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":["clearing","hooks","hydration","memoization","react"],"created_at":"2025-01-11T04:39:25.669Z","updated_at":"2026-05-04T21:37:33.677Z","avatar_url":"https://github.com/ludvigalden.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ludvigalden"],"categories":[],"sub_categories":[],"readme":"[![Stable Release](https://img.shields.io/npm/v/use-cleared-memo.svg)](https://npm.im/use-cleared-memo)\n[![Types Included](https://badgen.net/npm/types/use-cleared-memo)](https://npm.im/use-cleared-memo)\n[![GZip Size](https://badgen.net/bundlephobia/minzip/use-cleared-mempo)](https://npm.im/use-cleared-memo)\n[![Treeshaking](https://badgen.net/bundlephobia/tree-shaking/use-cleared-memo)](https://npm.im/use-cleared-memo)\n[![Blazing Fast](https://badgen.now.sh/badge/speed/blazing%20%F0%9F%94%A5/green)](https://npm.im/use-cleared-memo)\n[![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE)\n\n---\n\nAre you building a hook or functional React component that needs to predictably clear and/or hydrate memoized values in an easy-to-use way? Opportunities are almost endless; no matter if you're subscribing to external state, initializing timers or intervals, or creating a new instance of some object every time deps change that eventually needs to be deconstructed, `useClearedMemo` will be there for you to do the job.\n\n{{\u003emain}}\n\n## Authors\n\n- Ludvig Aldén [@ludvigalden](https://github.com/ludvigalden)\n\n---\n\n[MIT License.](https://github.com/ludvigalden/use-cleared-memo/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludvigalden%2Fuse-cleared-memo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fludvigalden%2Fuse-cleared-memo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludvigalden%2Fuse-cleared-memo/lists"}