Last active
December 22, 2015 20:11
-
-
Save arackaf/e83db5bcf629931088e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stackedSubjectsSelector = createSelector( | |
[state => state.list], | |
list => stackAndGetTopLevelSubjects(list) | |
); | |
const bookListSelector = state => ({ | |
subjects: Object.assign({}, state.bookList.subjects, {list: stackedSubjectsSelector(state.bookList.subjects)}), | |
books: Object.assign({}, state.bookList.books, {list: booksWithSubjectsSelector(state.bookList)}), | |
filters: state.bookList.filters | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment