Skip to content

Instantly share code, notes, and snippets.

@hkjels
Last active September 7, 2018 07:38
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 hkjels/8d9bc22adac573543701d7661ccfd83d to your computer and use it in GitHub Desktop.
Save hkjels/8d9bc22adac573543701d7661ccfd83d to your computer and use it in GitHub Desktop.
Nebula Reactive Flow
Nebula Reactive Flow
Data going in
SomeService
dispatch SomeAction -> StateStore
StateStore
portion of state -> Reducers
Reducers
modify state for next-tick -> Data going out
Data going out
UpdateCoordinator
notify all registered parties about change -> Binder
Binder
conform the values for each platform -> View
View
display bound values
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