{"id":13725369,"url":"https://github.com/simonihmig/tracked-redux","last_synced_at":"2025-09-06T08:47:16.347Z","repository":{"id":43835269,"uuid":"255099464","full_name":"simonihmig/tracked-redux","owner":"simonihmig","description":"Autotracked Redux","archived":false,"fork":false,"pushed_at":"2023-03-04T15:07:33.000Z","size":3570,"stargazers_count":29,"open_issues_count":13,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-30T12:43:20.599Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonihmig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2020-04-12T14:26:04.000Z","updated_at":"2023-09-03T16:12:30.000Z","dependencies_parsed_at":"2024-10-20T13:48:51.891Z","dependency_job_id":null,"html_url":"https://github.com/simonihmig/tracked-redux","commit_stats":{"total_commits":66,"total_committers":5,"mean_commits":13.2,"dds":0.5606060606060606,"last_synced_commit":"3cef4e3d1e6b458317b87557ed6943e18bd471db"},"previous_names":["pzuraq/tracked-redux"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/simonihmig/tracked-redux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonihmig%2Ftracked-redux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonihmig%2Ftracked-redux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonihmig%2Ftracked-redux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonihmig%2Ftracked-redux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonihmig","download_url":"https://codeload.github.com/simonihmig/tracked-redux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonihmig%2Ftracked-redux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273879828,"owners_count":25184428,"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-09-06T02:00:13.247Z","response_time":2576,"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":"2024-08-03T01:02:20.779Z","updated_at":"2025-09-06T08:47:16.310Z","avatar_url":"https://github.com/simonihmig.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"tracked-redux\n==============================================================================\n\n[![CI](https://github.com/simonihmig/tracked-redux/actions/workflows/ci.yml/badge.svg)](https://github.com/simonihmig/tracked-redux/actions/workflows/ci.yml)\n\nThis Ember addon provides an autotracked version of [Redux](https://redux.js.org/).\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.24 or above\n* Embroider or ember-auto-import v2\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install tracked-redux\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\n```js\nimport { createStore } from 'tracked-redux';\n\nconst store = createStore((state = { todos: [] }, action) =\u003e {\n  if (action.type === 'ADD_TODO') {\n    return { todos: [...state.todos, action.todo] };\n  }\n\n  return state;\n});\n\nclass Example extends Component {\n  get todos() {\n    return store.getState().todos;\n  }\n\n  @action addTodo(todo) {\n    store.dispatch({ type: 'ADD_TODO', todo });\n  }\n}\n```\n\nThe API is the same as Redux in every way, with the only difference being that\nthe state tree returned by `getState` is deeply autotracked. Accessing values on\nit will entangle with any autotracking that is active. When actions are\ndispatched and the state tree is updated, only the values that are _changed_\nwill dirty.\n\nFor more detailed usage instructions an examples, see the\n[Redux documentation](https://redux.js.org/introduction/getting-started).\n\n\nDebugging\n------------------------------------------------------------------------------\n\nTracked Redux works by using [JavaScript Proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy),\nwhich is how it is able to only dirty the state that has actually changed in the\nstate tree. However, proxies do not display well in the console:\n\n![Image of proxy logged in console](./docs/assets/before-custom-formatters.png)\n\nTracked Redux ships with a custom console formatter for Chrome devtools to make\nthese proxies appear nicer and easier to understand:\n\n![Image of proxy logged in console](./docs/assets/after-custom-formatters.png)\n\nCustom formatters have to be enabled in the devtools settings:\n\n![Image of proxy logged in console](./docs/assets/enabling-custom-formatters.png)\n\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonihmig%2Ftracked-redux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonihmig%2Ftracked-redux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonihmig%2Ftracked-redux/lists"}