{"library":"redux-middleware-oneshot","type":"library","category":null,"description":"Creates a Redux middleware that invokes a setup function exactly once, when the first action passes through the middleware chain, allowing you to dispatch actions from arbitrary event sources (e.g., event emitters, WebSocket listeners) in a clean and timely manner. Current version 0.1.1 is early stage with limited releases and no tests. Redux peer dependency supports versions 1.x–3.x. Differentiates from other middleware patterns by ensuring one-time initialization tied to the first Redux action.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","redux","redux-middleware","middleware"],"install":[{"cmd":"npm install redux-middleware-oneshot","imports":["import createOneShot from 'redux-middleware-oneshot';","import createOneShot from 'redux-middleware-oneshot';","import { applyMiddleware, createStore } from 'redux';\nconst middleware = createOneShot(dispatch => { ... });\nconst store = createStore(reducer, applyMiddleware(middleware));"]},{"cmd":"yarn add redux-middleware-oneshot","imports":[]},{"cmd":"pnpm add redux-middleware-oneshot","imports":[]}],"homepage":null,"github":"https://github.com/michaelcontento/redux-middleware-oneshot","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/redux-middleware-oneshot","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/redux-middleware-oneshot/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}