mrpmorris / Fluxor

Fluxor is a zero boilerplate Flux/Redux library for Microsoft .NET and Blazor.
MIT License
1.25k stars 144 forks source link

Release/5.0 #239

Closed mrpmorris closed 2 years ago

lucaswalter commented 2 years ago

@mrpmorris Anything else we can do in terms of reviewing & testing here? We are very interested in being able to pull in the fluxor initialization changes.

rodrigochapeta commented 2 years ago

Hi @mrpmorris, This looks great, keen on the change to is/ is not operators, look forward to this release

uhfath commented 2 years ago

This looks promising! However, one question, @mrpmorris. Will it be possible to 'select' multiple values in a state selector? With multiple Select calls or through an anonymous object?

mrpmorris commented 2 years ago

A state selector will only have a single selector.

uhfath commented 2 years ago

Thanks. Is there any particular reason for this?

mrpmorris commented 2 years ago

It's a strongly-typed generic, so it takes <TState, TSubSelectionOfThatState> as generic parameters. So you need one per selection otherwise I'd have to have <TState1, TSelection1, TState2, TSelection2, TState3, TSelection3> along with properties State1, State2, State3 etc.

It quickly becomes unwieldy, and is far simpler to have multiple injected properties in the component instead.

uhfath commented 2 years ago

It quickly becomes unwieldy, and is far simpler to have multiple injected properties in the component instead.

That's a good point. Thanks for the info. Looking forward to take a look.