-
-
Save LukeSmetham/153af37ca8c9809ebb5d73a4a2861c9b to your computer and use it in GitHub Desktop.
This file contains 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 { 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