Skip to content

Instantly share code, notes, and snippets.

@gbuszmicz
Last active April 16, 2020 22:24
Show Gist options
  • Save gbuszmicz/7c455cc9380bd469994db6aa3a453886 to your computer and use it in GitHub Desktop.
Save gbuszmicz/7c455cc9380bd469994db6aa3a453886 to your computer and use it in GitHub Desktop.
idle
idle
FETCHING -> fetching
fetching
FETCH_SUCCESS -> resolve
FETCH_ERROR -> reject
FETCH_EMPTY -> empty
resolve
ready
OPEN_ZOOM_MODAL -> zoomModal
OPEN_OFFER_MODAL -> offerModal
zoomModal
CLOSE_ZOOM_MODAL -> resolve
offerModal
CLOSE_OFFER_MODAL -> resolve
active
MAKE_OFFER -> offering
offering
OFFER_RESOLVE -> offerResolve
OFFER_REJECT -> offerReject
offerReject
MAKE_OFFER -> offering
offerResolve
reject
FETCHING -> fetching
empty
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