Blazor-Fluxor is a low (zero) boilerplate Flux/Redux library for the new Microsoft aspdotnet Blazor project.
The aim of Fluxor is to create a single-state store approach to front-end development in Blazor without the headaches typically associated with other implementations, such as the overwhelming amount of boiler-plate code required just to add a very basic feature.
You can download the latest release / pre-release NuGet packages from the official Blazor-Fluxor nuget page.
Install the dependencies and devDependencies and start the server.
The easiest way to get started is to look at the Sample projects. They are numbered in an order recommended for learning Blazor-Fluxor. Each will have a readme
file that explains how the sample was created.
More sample projects will be added as the framework develops.
- Counter sample - Fluxorizes
Counter
page in the standard Visual Studio Blazor sample in order to show how to switch to a Redux/Flux pattern application using Fluxor. - Effects sample - Fluxorizes
FetchData
page in the standard Visual Studio Blazor sample in order to demonstrate asynchronous reactions to actions that are dispatched. - Redux dev tools integration - Demonstrates how to enable debugger integration for the [Redux dev tools] Chrome plugin.
- Changed the signature of IStore.Dispatch to IStore.DispatchAsync
- Upgraded to latest version of Blazor (0.3.0)
- Changed the signature of ServiceCollection.AddFluxor to pass in an Options object
- Added support for Redux Dev Tools
- Added support for adding custom Middleware
- Changed side-effects to return an array of actions to dispatch rather than limiting it to a single action
- Added side-effects for calling out to async routines such as HTTP requests
- Added a sample application to the Sample projects
- Automatic discovery of store, features, and reducers via dependency injection.
- Basic store / feature / reducer implementation
MIT