0.1.4 • Published 6 years ago

sub-selectors v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

sub-selectors

Transform redux sub-selectors for use higher in the state tree

import {combineReducers} from 'redux';
import subSelectors from 'sub-selectors';
import myReducer, * as mySelectors from './myReducer';
// other reducers

export default combineReducers({
  myReducer,
  // other reducers
});

export const selectors = {
  myReducer: subSelectors(mySelectors, 'myReducer'),
  // selectors for other reducers
};
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago