Add a new component declaration pattern that pools MauiReactor objects to reduce memory allocations, it could be useful in ReenderItem methods in collection views.
Instead of:
public override VisualNode Render()
{
return new ContentPage("Counter Sample")
{
new VStack(spacing: 10)
{
new Label($"Counter: {State.Counter}")
.VCenter()
.HCenter(),
new Button("Click To Increment", () =>
SetState(s => s.Counter++))
}
.VCenter()
.HCenter()
};
}
Add a new component declaration pattern that pools MauiReactor objects to reduce memory allocations, it could be useful in ReenderItem methods in collection views.
Instead of:
this: