# InvalidateWhenEx

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/aggregation/trait-invalidatewhenex/

**trait** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
trait InvalidateWhenEx<T>
```

The invalidation of an aggregating sequence (`InvalidateWhen`), for every sequence.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregation_ex.rs#L303)

## Members

- [`invalidate_when`](#function-invalidate_when)

<a id="function-invalidate_when"></a>

### invalidate_when

```rust
fn invalidate_when<U: 'static>(self: &Self, invalidate: Rc<dyn IObservable<U>>) -> Rc<dyn IObservable<T>>
```

The sequence, subscribed again each time `invalidate` notifies, without repeating a value:
used when an item changes inline, so that an aggregation is computed again
(`InvalidateWhen(IObservable<Unit>)` and `InvalidateWhen<T, TTrigger>(IObservable<TTrigger?>)`,
which are one method: the trigger's values are not read).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/aggregation/aggregation_ex.rs#L308)

## Trait implementations

- [`InvalidateWhenEx<T>`](/docs/0.5.0/api/ferroui-dynamic-data/aggregation/trait-invalidatewhenex/)

## Availability

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