{"id":16635829,"url":"https://github.com/ythecombinator/deeply-checked-effect","last_synced_at":"2025-12-25T08:02:20.907Z","repository":{"id":88817998,"uuid":"163808218","full_name":"ythecombinator/deeply-checked-effect","owner":"ythecombinator","description":"React hook for providing an alternative for useEffect that does a deep comparison of passed objects","archived":false,"fork":false,"pushed_at":"2019-01-03T21:22:51.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T00:31:15.090Z","etag":null,"topics":["hooks","hooks-api-react","react","useeffect"],"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/ythecombinator.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-02T07:24:26.000Z","updated_at":"2023-03-08T04:37:35.000Z","dependencies_parsed_at":"2023-06-12T19:00:51.001Z","dependency_job_id":null,"html_url":"https://github.com/ythecombinator/deeply-checked-effect","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"93e437bfd3096e16c6835e6ed6befc30e393d47e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ythecombinator/deeply-checked-effect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ythecombinator%2Fdeeply-checked-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ythecombinator%2Fdeeply-checked-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ythecombinator%2Fdeeply-checked-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ythecombinator%2Fdeeply-checked-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ythecombinator","download_url":"https://codeload.github.com/ythecombinator/deeply-checked-effect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ythecombinator%2Fdeeply-checked-effect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28024302,"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-12-25T02:00:05.988Z","response_time":58,"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":["hooks","hooks-api-react","react","useeffect"],"created_at":"2024-10-12T06:04:58.070Z","updated_at":"2025-12-25T08:02:20.880Z","avatar_url":"https://github.com/ythecombinator.png","language":"JavaScript","readme":"# `@rehooks/deeply-checked-effect`\n\n\u003e React hook for handling deep object comparison in React's `useEffect` hook.\n\n\u003e **Note:** This is using the new [React Hooks API Proposal](https://reactjs.org/docs/hooks-intro.html)\n\u003e which is subject to change until React 16.7 final.\n\u003e\n\u003e You'll need to install `react`, `react-dom`, etc at `^16.7.0-alpha.0`\n\n## Install\n\n```sh\nyarn add @rehooks/deeply-checked-effect\n```\n\n## Usage\n\n### Sample\n\n```jsx\nimport useEffect from \"@rehooks/deeply-checked-effect\";\n\nfunction UseEffect({ state }) {\n  useEffect(\n    () =\u003e {\n      console.log(\"useEffect\", state);\n    },\n    [state]\n  );\n\n  return \u003cdiv /\u003e;\n}\n```\n\n### API\n\nThe `useEffect(create, inputs)` hook takes two parameters and has no return. The mentioned parameters are:\n\n#### `create`\n\nA function that contains imperative, possibly effectful code and is directly invoked inside a regular React's `useEffect` hook.\n\n#### `inputs`\n\nThe array of values that the effect depends on and that will be deeply compared for changes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fythecombinator%2Fdeeply-checked-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fythecombinator%2Fdeeply-checked-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fythecombinator%2Fdeeply-checked-effect/lists"}