0.1.4 • Published 7 years ago

sub-selectors v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
7 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

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago