Skip to content

Instantly share code, notes, and snippets.

@WinstonFassett
Created November 11, 2020 11:18
Show Gist options
  • Save WinstonFassett/1981faca9401547e252cb5f7b5af04de to your computer and use it in GitHub Desktop.
Save WinstonFassett/1981faca9401547e252cb5f7b5af04de to your computer and use it in GitHub Desktop.
Master-Detail Synchronizer
Master-Detail Synchronizer
Initializing
initialized -> Connecting
Connecting
success -> Connected
Connected
Starting Sync
Loading Local
done -> Loading Remote
Loading Remote
done -> Subscribing
Querying Metadata
Loading Metadata Page
done -> Loading Docs
Loading Docs
Loading Doc
done -> Subscribing
Subscribing
subscribed -> Syncing
Syncing
receiveUpdate -> Syncing
disconnect -> Not Connected
Not Connected
connect -> Connecting
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