UNPKG

@anhnh27/reduxtoolkit-action-dispatcher

Version:

Dispatch redux actions without useDispatch or mapDispatchToProps

15 lines (14 loc) 349 B
"use strict"; /** * CreatedBy: Hoang Anh Nguyen * Date: 08 Nov 22 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.store = void 0; const actionDispatcherMiddleware = (_store) => { exports.store = _store; return (next) => (action) => { next(action); }; }; exports.default = actionDispatcherMiddleware;