Last active
September 7, 2018 07:38
-
-
Save hkjels/8d9bc22adac573543701d7661ccfd83d to your computer and use it in GitHub Desktop.
Nebula Reactive Flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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