Last active
November 15, 2021 06:00
-
-
Save iboss-ptk/2c8b97ddc2ac9a636a8ccbb68fe3f36a to your computer and use it in GitHub Desktop.
App State
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
App State | |
App not running* | |
open app -> Logged in? | |
App opened | |
kill app -> App not running | |
close app -> App Backgrounded | |
Login Screen | |
login -> Login | |
signup -> Signup | |
Login | |
success -> Fetch Data | |
Signup | |
success -> Fetch Data | |
Tab Navigator | |
App Backgrounded | |
open app -> App opened | |
Logged in? | |
yes -> Fetch Data | |
no -> Login Screen | |
Fetch Data | |
Loading* | |
success -> Tab Navigator | |
fail -> Retry Prompt | |
Retry Prompt | |
try again -> Loading |
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
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