mrpmorris / Fluxor

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

Update README.md #442

Closed samuelschnurr closed 10 months ago

samuelschnurr commented 11 months ago

In the documentation, one point is unclear, which left me a bit puzzled. This addition should provide clarity.

Background: Overwriting OnInitialized overwrites the Fluxor implementation that registers the StateHandler. If you overwrite this method without calling base.OnInitialized, the component will not be correctly notified about state changes even if inherited from the class.

However, this is not a problem with OnInitializedAsync, since this is not implemented by Fluxor.

mrpmorris commented 10 months ago

Merged, thank you!