Skip to content

Instantly share code, notes, and snippets.

@esmevane
Created October 11, 2020 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmevane/1cb06ff8806ca27b4ccf66faaaf00c25 to your computer and use it in GitHub Desktop.
Save esmevane/1cb06ff8806ca27b4ccf66faaaf00c25 to your computer and use it in GitHub Desktop.
Widget&
Widget&
Async
Pending
Fetch -> Fetching
Fetching
Resolved -> Success
Rejected -> Failure
Success
Fetch -> Fetching
Failure
Retry -> Fetching
Data
Ready
Data -> Populated
No Data -> Empty
Populated
No Data -> Empty
Empty
Data -> Populated
function render(model) {
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue", margin: '2em' }},
`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