mrpmorris / Fluxor

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

FeatureStateAttribute #204

Closed mrpmorris closed 3 years ago

mrpmorris commented 3 years ago

Allow users to decorate classes with [FeatureState] to avoid having to create a Feature descendant class.

Optional parameters would be

  1. Name - The name of the state in ReduxDevTools (defaults to full class name).
  2. CreateInitialStateMethodName = Name of static method to create a default instance, otherwise a parameterless constructor is expected.
  3. MaximumStateChangedNotificationsPerSecond = 0
szalapski commented 3 years ago

Can name be optional as well? The default would be the name of the class that the attribute is on, right?

mrpmorris commented 3 years ago

Implemented in 4.2