{"id":13804851,"url":"https://github.com/YoruNoHikage/redux-devtools-dispatch","last_synced_at":"2025-05-13T18:32:53.553Z","repository":{"id":57350542,"uuid":"48910128","full_name":"YoruNoHikage/redux-devtools-dispatch","owner":"YoruNoHikage","description":"Dispatch your actions manually to test if your app reacts well.","archived":false,"fork":false,"pushed_at":"2017-05-16T07:01:36.000Z","size":23,"stargazers_count":141,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T10:49:41.314Z","etag":null,"topics":["devtools","dispatch","react","redux"],"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/YoruNoHikage.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":"2016-01-02T13:09:40.000Z","updated_at":"2025-04-08T11:10:40.000Z","dependencies_parsed_at":"2022-09-16T21:11:46.271Z","dependency_job_id":null,"html_url":"https://github.com/YoruNoHikage/redux-devtools-dispatch","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruNoHikage%2Fredux-devtools-dispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruNoHikage%2Fredux-devtools-dispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruNoHikage%2Fredux-devtools-dispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YoruNoHikage%2Fredux-devtools-dispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YoruNoHikage","download_url":"https://codeload.github.com/YoruNoHikage/redux-devtools-dispatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003457,"owners_count":21997889,"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","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":["devtools","dispatch","react","redux"],"created_at":"2024-08-04T01:00:54.590Z","updated_at":"2025-05-13T18:32:53.072Z","avatar_url":"https://github.com/YoruNoHikage.png","language":"JavaScript","funding_links":[],"categories":["Dev tools / Inspection tools","Marks"],"sub_categories":["Side Effects","[React - A JavaScript library for building user interfaces](http://facebook.github.io/react)"],"readme":"# Redux DevTools Dispatch\nDispatch your actions manually to test if your app reacts well.\n\n[![npm version](https://img.shields.io/npm/v/redux-devtools-dispatch.svg?style=flat-square)](https://www.npmjs.com/package/redux-devtools-dispatch)\n\n![redux-devtools-dispatch](https://cloud.githubusercontent.com/assets/969003/12874321/2c3624ec-cdd2-11e5-9856-fd7e24efb8d5.gif)\n\n### Installation\n\n`npm install --save-dev redux-devtools-dispatch`\n\n### Usage\n\nYou can declare your Dispatcher the same way you declare a Monitor in your Dev Tools.\n\n```jsx\nimport React from 'react';\nimport { createDevTools } from 'redux-devtools';\nimport Dispatcher from 'redux-devtools-dispatch';\n\nexport default createDevTools(\n  \u003cDispatcher /\u003e\n);\n```\n\nYou can inject action creators to ease the process of testing your app firing yourself actions.\n\n```jsx\nimport React from 'react';\nimport { createDevTools } from 'redux-devtools';\nimport Dispatcher from 'redux-devtools-dispatch';\n\nconst actionCreators = {\n  increment() {\n    return {type: 'INCREMENT_COUNTER'};\n  },\n  decrement() {\n    return {type: 'DECREMENT_COUNTER'};\n  },\n  nested: {\n    worksToo() {\n      return {type: 'NESTED_WORKS_TOO', cool: true};\n    },\n  },\n};\n\nexport default createDevTools(\n  \u003cDispatcher actionCreators={actionCreators} /\u003e\n);\n```\n\nYou can also use `\u003cMultipleMonitors\u003e` from [`redux-devtools-multiple-monitors`](https://github.com/YoruNoHikage/redux-devtools-multiple-monitors) to use multiple monitors into the `\u003cDockMonitor\u003e`:\n\n```jsx\nimport React from 'react';\n\nimport { createDevTools } from 'redux-devtools';\nimport LogMonitor from 'redux-devtools-log-monitor';\nimport DockMonitor from 'redux-devtools-dock-monitor';\nimport Dispatcher from 'redux-devtools-dispatch';\nimport MultipleMonitors from 'redux-devtools-multiple-monitors';\n\nexport default createDevTools(\n  \u003cDockMonitor toggleVisibilityKey=\"ctrl-h\" changePositionKey=\"ctrl-q\" defaultIsVisible={false}\u003e\n    \u003cMultipleMonitors\u003e\n      \u003cLogMonitor /\u003e\n      \u003cDispatcher /\u003e\n    \u003c/MultipleMonitors\u003e\n  \u003c/DockMonitor\u003e\n);\n```\n\nThen, just write an JSON action in the field, click on Dispatch, and that's all!\n\n### Props\n\nName                  | Description\n-------------         | -------------\n`theme`               | _Same as in LogMonitor's package_ Either a string referring to one of the themes provided by [redux-devtools-themes](https://github.com/gaearon/redux-devtools-themes) (feel free to contribute!) or a custom object of the same format. Optional. By default, set to [`'nicinabox'`](https://github.com/gaearon/redux-devtools-themes/blob/master/src/nicinabox.js).\n`initEmpty`           | When `true`, the dispatcher is empty. By default, set to `false`, the dispatcher contains : `{ \"type\": \"\" }`.\n`actionCreators`      | Either a array of action creators or an object containing action creators. When defined, a selector appears to choose the action creator you want to fire, you can fill up the arguments and dispatch the action.\n`dispatchFn`          | Function to be called for dispatching actions. By default it is using component's `this.context.store.dispatch`. \n\n### Contributing\n\nAs this package is my first, any comment, pull request, issue is welcome so I can learn more from everyone.\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYoruNoHikage%2Fredux-devtools-dispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYoruNoHikage%2Fredux-devtools-dispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYoruNoHikage%2Fredux-devtools-dispatch/lists"}