anathema icon indicating copy to clipboard operation
anathema copied to clipboard

Component attributes are not updated when they depend on parent state

Open togglebyte opened this issue 3 months ago • 0 comments

What happened Passing state to children via attributes don't seem to work for components.

The value does not update when the state does. However using the attribute for a widget does in fact update. Most likely the attribute is not subscribed to when used for components.

What did you expect to happen The component attribute to update.

Steps to reproduce Steps to reproduce the behaviour:

@component [doesnotupdate: state.value]
// component.rs
context.attributes.get_as::<u32>("doesnotupdate"); // this does not update

togglebyte avatar Nov 03 '25 08:11 togglebyte