Created
January 2, 2020 15:26
-
-
Save hjbrandt/698dcf0510d8c64d02dadd52a83e932d to your computer and use it in GitHub Desktop.
fetch
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
fetch | |
idle | |
FETCH -> loading | |
loading | |
RESOLVE -> success | |
REJECT -> failure | |
success | |
SUCCESS -> Home View | |
failure | |
RETRY -> loading | |
Tab Bar | |
home -> Home | |
explore -> Explore | |
sleep -> Sleep | |
profile -> Profile | |
Home* | |
Home View | |
pull to refresh -> loading | |
tap Keep going -> Meditation Overlay | |
Meditation Overlay | |
tap back -> Home View | |
tap next session -> Selected Session | |
Selected Session | |
cancel -> Meditation Overlay | |
tap play -> Meditation Session | |
Meditation Session | |
cancel -> Meditation Overlay | |
Explore* | |
Explore View* | |
Sleep* | |
Sleep View* | |
Profile* | |
Profile View* | |
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
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment