Created
November 28, 2020 22:31
-
-
Save WinstonFassett/dd97b81f73ecaf53fb00abb1f4e9e8b8 to your computer and use it in GitHub Desktop.
reactive-computed-property
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
reactive-computed-property | |
not_initialized | |
not_initialized_idle | |
initialize -> initializing | |
initializing | |
initialized -> initialized | |
initialized& | |
dispose -> disposing | |
value | |
empty | |
empty_idle | |
get -> getting_dependencies_for_compute | |
add_first_subscriber -> getting | |
getting | |
getting_dependencies | |
getting_dependencies_for_compute | |
got_dependencies -> computing | |
computing | |
computed -> notifying | |
has_value | |
dependency_updated -> updating | |
unused_timeout -> empty_idle | |
computed | |
get_latest -> getting_latest | |
getting_latest | |
got_latest -> computed | |
updating | |
updated -> notifying | |
notifying | |
notified -> computed | |
subscription& | |
dependencies | |
not_subscribed | |
subscribe_dependencies -> subscribing_dependencies | |
add_first_subscriber -> subscribing_dependencies | |
subscribing_dependencies | |
subscribed_dependencies -> susbscribed_dependencies | |
susbscribed_dependencies | |
unsubscribe_dependencies -> unsubscribing_dependencies | |
unsubscribing_dependencies | |
unsubscribed_dependencies -> not_subscribed | |
pubsub | |
add_first_subscriber -> adding_subscriber | |
not_listening | |
not_listening_idle | |
listen -> listening_for_subscribers_idle | |
unused_timout -> disposing | |
disposing | |
disposed -> not_initialized | |
listening_for_subscribers | |
listening_for_subscribers_idle | |
add_subscriber -> adding_subscriber | |
remove_subscriber -> removing_subscriber | |
adding_subscriber | |
added_subscriber -> listening_for_subscribers_idle | |
removing_subscriber | |
last_subscriber_removed -> not_listening | |
removes_subscriber -> listening_for_subscribers_idle |
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