# use_memo

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/hooks/function-use_memo/

**function** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
fn use_memo<T: PartialEq + 'static>(compute: impl Fn() -> T + 'static) -> crate::reactive::Memo<T>
```

A memo of `compute`, made on the first run and kept across runs. It
follows the signals it reads; it does not see the values the function was
given on later runs (read those in the function, or keep them in a
signal).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/hooks.rs#L182)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
