Component Parameters
Component Parameters is a way to share data between parent and child components
MauiReactor has a nice feature that developers can integrate into their app to share data between a component and its tree of children.
A parameter is a way to automatically transfer an object from the parent component to its children down the hierarchy up to the lower ones.
Each component accessing a parameter can read and write its value freely.
When a parameter is modified all the components referencing it are automatically invalidated so that they can re-render according to the new value.
For example, in the following code, we're going to define a parameter in a component:
To access the component from a child, just reference it:
Last updated
Was this helpful?