# plan_component_action_in_context

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/function-plan_component_action_in_context/

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

```rust
fn plan_component_action_in_context(document: &ferroui_designer_core::Document, action: &ComponentAction, context: &ComponentResourceContext) -> crate::Result<Vec<ferroui_designer_core::Edit>>
```

Plan resource application against an explicit runtime theme. All other actions,
especially rename and deletion, retain conservative cross-theme reference checks.
A host must revalidate the targets' actual theme context before committing this plan.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/component_authoring.rs#L225)

## Availability

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