{"id":16941899,"url":"https://github.com/samouri/measure-wasted-renders","last_synced_at":"2026-04-08T21:32:00.213Z","repository":{"id":71231816,"uuid":"130077250","full_name":"samouri/measure-wasted-renders","owner":"samouri","description":"Find your most inefficient React components ","archived":false,"fork":false,"pushed_at":"2024-01-14T18:28:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T19:37:28.665Z","etag":null,"topics":["optimization-tools","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/samouri.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,"zenodo":null}},"created_at":"2018-04-18T14:43:57.000Z","updated_at":"2024-01-14T18:28:38.000Z","dependencies_parsed_at":"2025-08-14T19:21:32.582Z","dependency_job_id":"f5b10eae-68c8-4a12-9a57-0e88b821b5a5","html_url":"https://github.com/samouri/measure-wasted-renders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samouri/measure-wasted-renders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fmeasure-wasted-renders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fmeasure-wasted-renders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fmeasure-wasted-renders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fmeasure-wasted-renders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samouri","download_url":"https://codeload.github.com/samouri/measure-wasted-renders/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samouri%2Fmeasure-wasted-renders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31575484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["optimization-tools","react"],"created_at":"2024-10-13T21:10:36.718Z","updated_at":"2026-04-08T21:32:00.197Z","avatar_url":"https://github.com/samouri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# measure-wasted-renders\n\n**to install**\n\n```bash\nnpm install --save-dev measure-wasted-renders\n```\n\n**to use**\n\n```js\n// in your app's entry-point\nimport React from \"react\";\nimport measureWastedRenders from \"measure-wasted-renders\";\n\nif (process.env.NODE_ENV !== \"production\") {\n  measureWastedRenders(React);\n}\n```\n\nThen later inside the devtools console you can run `window.prettyPrintWasted()` which outputs a table describing all of the components that have rerendered based on shallow changes to its props that were actually deeply equal to previous props.\n\n![](https://user-images.githubusercontent.com/4656974/35294060-a1affd1a-0043-11e8-88a8-3c6e291fff67.png)\n\nCan be used with React Native with similar steps:\n- Install using `npm install --save-dev measure-wasted-renders`\n- Run your app and select \"Debug JS Remotely\" in the simulator.\n- Select \"debuggerWorker.js\" in the Chrome console.\n- In the console, run `window.prettyPrintWasted()`\n\u003cimg width=\"1440\" alt=\"screen shot 2018-04-20 at 10 58 37 am\" src=\"https://user-images.githubusercontent.com/7039196/39058641-6bd3477a-448a-11e8-88de-3f0405ec1a3d.png\"\u003e\n\n\n## TO DO\n - remove lodash dependency\n - publish to npm\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Fmeasure-wasted-renders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamouri%2Fmeasure-wasted-renders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamouri%2Fmeasure-wasted-renders/lists"}