Function yew::functional::use_reducer_eq[][src]

pub fn use_reducer_eq<T, F>(initial_fn: F) -> UseReducerHandle<T> where
    T: Reducible + PartialEq + 'static,
    F: FnOnce() -> T, 
Expand description

use_reducer but only re-renders when prev_state != next_state.

This requires the state to implement PartialEq in addition to the Reducible trait required by use_reducer.