{"id":20801153,"url":"https://github.com/pothos-dev/redux-action-objects","last_synced_at":"2026-03-08T20:34:57.123Z","repository":{"id":129131523,"uuid":"130211659","full_name":"pothos-dev/redux-action-objects","owner":"pothos-dev","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-19T13:40:49.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-12T21:58:09.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pothos-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-04-19T12:23:32.000Z","updated_at":"2018-04-19T13:40:50.000Z","dependencies_parsed_at":"2023-04-22T16:00:47.171Z","dependency_job_id":null,"html_url":"https://github.com/pothos-dev/redux-action-objects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pothos-dev/redux-action-objects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos-dev%2Fredux-action-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos-dev%2Fredux-action-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos-dev%2Fredux-action-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos-dev%2Fredux-action-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pothos-dev","download_url":"https://codeload.github.com/pothos-dev/redux-action-objects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pothos-dev%2Fredux-action-objects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30272357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:26:37.259Z","status":"ssl_error","status_checked_at":"2026-03-08T20:26:27.996Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-17T18:16:52.627Z","updated_at":"2026-03-08T20:34:57.106Z","avatar_url":"https://github.com/pothos-dev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Yet another Redux Action pattern in Typescript\n\n```typescript\nimport {defineAction} from 'redux-action-objects';\n\n// define the Application state type\ninterface AppState {/*...*/}\n\n// create an ActionGroup that works on AppState\nconst actionGroup = createActionGroup\u003cAppState\u003e();\n\n// add an action to the ActionGroup\nconst ClickAction = actionGroup.addAction\u003c{\n  // define payload here - you can also provide an explicit interface\n  x: number\n  y: number\n}\u003e({\n  // We don't actually need to assign a type name - if omitted, the name will be generated randomly.\n  // However, it is advisable to use human readable type for logging and debugging.\n  type: 'ClickAction',\n\n  // This is the reducer function that should be executed when the action is processed. It takes\n  // the AppState and the action payload and should return an Appstate again.\n  // Parameters and return types are already typechecked.\n  reduce: (state, { x, y }) =\u003e {\n    return { ...state, clicks: [ ...state.clicks, {x, y} ] }\n  }\n})\n\n// Add any number of additional actions to actionGroup...\n\n// create the redux store - using actionGroup.reducer as our reducer function. No switch case required!\nconst state: AppState = {/*...*/}\nconst store = createStore(actionGroup.reducer, state);\n\n// create an action using the typesafe action creator, then dispatch it to store\nconst action = ClickAction.create({x: 23, y: 42})\nstore.dispatch(action);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpothos-dev%2Fredux-action-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpothos-dev%2Fredux-action-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpothos-dev%2Fredux-action-objects/lists"}