[−][src]Function comp_state::memo::watch
pub fn watch<T: 'static + Clone + PartialEq>(current_watched: &T) -> bool
creates a watch object its is own topological context passed the current state of type T if the state is different return a watch object with true the 'changed' field if state is not different just return the existing watch object
This is then used as the recalc argument for use_memo.Clone
Example:
let watch_changed = watch(list);