Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created December 24, 2019 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/21c1de8006b65ef136e4bca1764779a7 to your computer and use it in GitHub Desktop.
Save lydemann/21c1de8006b65ef136e4bca1764779a7 to your computer and use it in GitHub Desktop.
todo-list.selector.ts
export const getTodolistState = createFeatureSelector<TodoListState>(
'todoList',
);
export const todoListSelector = createSelector(
getTodolistState,
todoListState => todoListState.todos,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment