Created
April 8, 2020 17:16
-
-
Save Porter97/abd4e783b483da9b1a340454eae8132d 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
export default (state = {}, action) => { | |
switch (action.type) { | |
case 'PROFILE_PAGE_LOADED': | |
return { | |
...action.payload.profile | |
}; | |
case 'PROFILE_PAGE_UNLOADED': | |
return {}; | |
default: | |
return state; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment