A library for dynamically injecting reducers into a Redux store at runtime, enabling lazy loading of reducers and plugin architectures. Version 0.1.0 is the only stable release. Unlike static combineReducers, it uses createInjectStore to accept an uncombined reducer tree and injectReducer to add reducers by path (e.g., 'date.form'). Relies on lodash.set. Release cadence is unknown; last update was years ago. Alternative to static reducer composition or other dynamic Redux solutions like Redux Toolkit's reducer injection examples. Minimal documentation and no recent maintenance, so consider compatibility with modern Redux carefully.
npm install redux-injectorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a store with createInjectStore and dynamically injecting a reducer using injectReducer with a dot path.
Be careful with path strings; they follow lodash.set conventions.
Pass an object of reducer functions without combineReducers.
Consider alternatives like Redux Toolkit's dynamic reducer injection or useReducer-based solutions.
Inject before any complex state changes or use immutable injection patterns.
Pass the uncombined reducer object tree, not the result of combineReducers.
Install lodash: npm install lodash
Use createInjectStore from redux-injector instead of createStore.