mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
Add Fluxor .NET
This commit is contained in:
parent
7a48268a74
commit
90bf815e08
|
@ -12,6 +12,7 @@ Mostly functional:
|
||||||
- [PureScript](#purescript)
|
- [PureScript](#purescript)
|
||||||
- [Reductive](#reductive)
|
- [Reductive](#reductive)
|
||||||
- [Aurelia](#aurelia)
|
- [Aurelia](#aurelia)
|
||||||
|
- [Fluxor](#fluxor) (.NET)
|
||||||
|
|
||||||
In progress:
|
In progress:
|
||||||
|
|
||||||
|
@ -300,3 +301,27 @@ export function configure(aurelia: Aurelia) {
|
||||||
aurelia.start().then(() => aurelia.setRoot());
|
aurelia.start().then(() => aurelia.setRoot());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### [Fluxor](https://github.com/mrpmorris/fluxor) (.NET)
|
||||||
|
|
||||||
|
#### [Fluxor.Blazor.Web.ReduxDevTools](https://github.com/mrpmorris/Fluxor/tree/master/Source/Lib/Fluxor.Blazor.Web.ReduxDevTools)
|
||||||
|
1. Add the `Fluxor.Blazor.Web.ReduxDevTools` nuget package to your project.
|
||||||
|
2. (Optional) Make it conditional on `DEBUG` mode.
|
||||||
|
|
||||||
|
```
|
||||||
|
<ItemGroup Condition="$(Configuration)=='Debug'">
|
||||||
|
<PackageReference Include="Fluxor.Blazor.Web.ReduxDevTools" Version="...." />
|
||||||
|
</ItemGroup>
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Use the `UseReduxDevTools` extension on the Fluxor options.
|
||||||
|
|
||||||
|
```c#
|
||||||
|
services.AddFluxor(o =>
|
||||||
|
{
|
||||||
|
o.ScanAssemblies(typeof(SomeType).Assembly);
|
||||||
|
#if DEBUG
|
||||||
|
o.UseReduxDevTools();
|
||||||
|
#endif
|
||||||
|
});
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user