mrpmorris / Fluxor

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

Reset all states to their initial values #415

Closed gthognard closed 8 months ago

gthognard commented 1 year ago

Hi,

This issue is related to issue #191. I created an action that triggers the reducer of each state to reset the values and it works, but it is fire and forget mode. I am looking for a method to reset all states of my application wich return ok or not ok if something go wrong..

Use case: I have a selector to switch between different contexts and I want to reset and reload all my states at each switch.

Thanks

mrpmorris commented 1 year ago

Nothing should go wrong when dispatching an action, it should reduce into state without any problems.