# use_data_context_value

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

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

```rust
fn use_data_context_value() -> Option<ferroui_base::BoxedValue>
```

The `DataContext` of the control the component is mounted in (inherited
from its ancestors), as it is now; the component runs again when it
changes. This is how a component reads the item of an item template
(`template`) or the view model of a view it is hosted
in (`ComponentHost`).

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

## Availability

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