Created
November 20, 2017 23:32
-
-
Save chasestarr/6de23cf2a58e30fca15ea5dcd926aa68 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
import { selectMany as selectManyTodos } from 'modules/todos/selectors'; | |
// ... | |
const selectTodoIdsFromProps = (_, props) => props.todoIds || []; | |
export const selectTodos = () => | |
createSelector(selectManyTodos(selectTodoIdsFromProps)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment