Skip to content

Instantly share code, notes, and snippets.

@iboss-ptk
Last active November 15, 2021 06:00
Show Gist options
  • Save iboss-ptk/2c8b97ddc2ac9a636a8ccbb68fe3f36a to your computer and use it in GitHub Desktop.
Save iboss-ptk/2c8b97ddc2ac9a636a8ccbb68fe3f36a to your computer and use it in GitHub Desktop.
App State
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
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