pub fn use_memo<'a, D, T>(
cx: ScopeState<'_>,
dependency: D,
make_value: impl FnOnce() -> T,
) -> Ref<'_, T>where
D: Memoize,
T: 'static,Expand description
Use a memoized value of type T with a dependency of type D.
make_value will update the returned value whenver dependency is changed.