Last active
June 5, 2017 09:25
-
-
Save erezrokah/c822b2746a4bd8c6b0604ae092d330e9 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
['FIREBASE_LISTEN_REQUESTED'](state, action) { | |
const newState = { | |
...state, | |
[action.metaType]: { | |
...state[action.metaType], | |
inProgress: true, error: '', ref: action.ref | |
} | |
} | |
return newState | |
}, | |
... | |
['FIREBASE_LISTEN_REMOVED'](state, action) { | |
const newState = { | |
...state, | |
[action.metaType]: { | |
...state[action.metaType], | |
inProgress: false, error: '', ref: null | |
} | |
} | |
return newState | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment