pub fn use_computed_with_prev<T: 'static + Clone, D: PartialEq + 'static>(
deps: D,
init: impl FnOnce(Option<T>) -> T,
) -> TExpand description
Alternative to use_memo Benefits:
- No unnecessary rerenders
- Prev value is
Tinstead of&mut TDownsides: - T needs to be Clone (cannot be avoided)