Skip to content

Instantly share code, notes, and snippets.

@chasestarr
Created November 20, 2017 23:32
Show Gist options
  • Save chasestarr/6de23cf2a58e30fca15ea5dcd926aa68 to your computer and use it in GitHub Desktop.
Save chasestarr/6de23cf2a58e30fca15ea5dcd926aa68 to your computer and use it in GitHub Desktop.
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