Skip to content

Instantly share code, notes, and snippets.

@vldvel
Last active June 9, 2020 06:20
Show Gist options
  • Save vldvel/f336dd69f2d1c4e3ade3a3fa9f08269f to your computer and use it in GitHub Desktop.
Save vldvel/f336dd69f2d1c4e3ade3a3fa9f08269f to your computer and use it in GitHub Desktop.
const EnumStatus = {
LOADED: 'LOADED',
LOADING: 'LOADING',
FAILED: 'FAILED'
}
const state = {
subState_1: {
data: any,
status: EnumStatus
},
subState_2: {
data: any,
status: EnumStatus
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment