Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created September 24, 2019 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LukeSmetham/153af37ca8c9809ebb5d73a4a2861c9b to your computer and use it in GitHub Desktop.
Save LukeSmetham/153af37ca8c9809ebb5d73a4a2861c9b to your computer and use it in GitHub Desktop.
import { createSelector } from 'reselect';
const getChat = (state) => state.chat;
export const makeSelectUnreadCount = () =>
createSelector(
getChat,
(chat) => chat.unread,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment