Last active
January 9, 2019 13:17
-
-
Save aigoncharov/46660b68e019f1269e821655e486fa9d 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
class CatsGetInit { | |
get static type () { | |
return `prefix/${this.name}` | |
} | |
constructor () { | |
this.type = this.constructor.type | |
} | |
} | |
const reducerCats = (state, action) => { | |
switch (action.type) { | |
case CatsGetInit.type: | |
return { | |
...state, | |
loading: true, | |
} | |
//... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment