Created
December 9, 2020 13:55
-
-
Save x-labz/c1ea9a92256f8853745844b361781384 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
const collectUserEvent = (state = initialState, action, wholeState) => { | |
const { payload: { userEvent } } = action; | |
cosnst sessionID = wholeState.users[userEvent.userID]?.sessionID | |
return [...state, { ...userEvent, sessionID } ] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment