Skip to content

Instantly share code, notes, and snippets.

@pyoner
Last active December 17, 2018 06:30
Show Gist options
  • Save pyoner/68090717552c8a724095a9f6db4d37f3 to your computer and use it in GitHub Desktop.
Save pyoner/68090717552c8a724095a9f6db4d37f3 to your computer and use it in GitHub Desktop.
Memoize Sketch&
Memoize Sketch&
Search
InitialSearch
search -> Processing
Processing
success -> Found
failure -> Not found
Found
search -> Processing
reset -> InitialSearch
open bookmark -> Bookmarks
open url -> URL
Not found
search -> Processing
reset -> InitialSearch
History
InitialHistory
add -> Add
search -> Search
Add
Loading*
ok -> Ok
error -> Err
Ok
Err
Bookmarks
InitialBookmarks
Shortcuts
URL
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