{"id":21347308,"url":"https://github.com/ziolko/auto-dispatch","last_synced_at":"2026-04-13T17:08:46.764Z","repository":{"id":57187245,"uuid":"122857589","full_name":"ziolko/auto-dispatch","owner":"ziolko","description":"The declarative way to fetch data required by your React \u0026 Redux app","archived":false,"fork":false,"pushed_at":"2018-02-25T17:34:00.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T11:17:14.153Z","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/ziolko.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}},"created_at":"2018-02-25T17:13:41.000Z","updated_at":"2019-08-08T11:12:52.000Z","dependencies_parsed_at":"2022-08-28T10:51:40.086Z","dependency_job_id":null,"html_url":"https://github.com/ziolko/auto-dispatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ziolko/auto-dispatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziolko%2Fauto-dispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziolko%2Fauto-dispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziolko%2Fauto-dispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziolko%2Fauto-dispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziolko","download_url":"https://codeload.github.com/ziolko/auto-dispatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziolko%2Fauto-dispatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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-22T02:13:40.560Z","updated_at":"2026-04-13T17:08:46.724Z","avatar_url":"https://github.com/ziolko.png","language":"JavaScript","readme":"This library exports a React component that automatically dispatches a Redux action\nwhen rendered. You can use it to trigger data fetch instead of doing it imperatively \nin `componentDidMount`. \n\n# Example\n\n```js\nimport { connect } from 'react-redux'\nimport AutoDispatch from 'auto-dispatch'\n\n// Action creator\nconst fetchCardDetails = cardId =\u003e ({ \n  type: 'FETCH_CARD_DETAILS', \n  cardId \n})\n\n// React component that automatically fetches required data\nconst Card = props =\u003e (\n  \u003cdiv\u003e\n    \u003cAutoDispatch action={fetchCardDetails(props.cardId)} /\u003e\n    {\n      /* Card display logic */\n    }\n  \u003c/div\u003e\n)\n```\n\n# How it works\n\nThe action given as an argument is dispatched on initial render and every time \nit changes (deep comparison is performed). In the example above action `FETCH_CARD_DETAILS`\nis dispatched every time `props.cardId` changes.\n\n# License\nhttps://opensource.org/licenses/MIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziolko%2Fauto-dispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziolko%2Fauto-dispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziolko%2Fauto-dispatch/lists"}