adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
555 stars 46 forks source link

Is it possible to create properties for inline components? #178

Closed cris-m closed 7 months ago

cris-m commented 7 months ago

I had an Inline Components, I would like to create some property. I would like to use property since the component will render different UI based on result from web request every 10 minutes

public VisualNode Card(string title)
        => Component.Render(context =>
        {

        });
adospace commented 7 months ago

You can pass your properties as parameters to the method that creates the inline component no? Like the title parameter in you sample code

cris-m commented 7 months ago

Yes I can do that. But can that property update a state change if it value change?

adospace commented 7 months ago

You have to re-render the component every 10 minutes passing a different property value