ReduxSimple 3.7.0

dotnet add package ReduxSimple --version 3.7.0
NuGet\Install-Package ReduxSimple -Version 3.7.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version ofInstall-Package.
<PackageReference Include="ReduxSimple" Version="3.7.0" />
For projects that supportPackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ReduxSimple" Version="3.7.0" />
Directory.Packages.props
<PackageReference Include="ReduxSimple" />
Project file
For projects that supportCentral Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ReduxSimple --version 3.7.0
The NuGet Team does not provide support for this client. Please contact itsmaintainers for support.
#r "nuget: ReduxSimple, 3.7.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ReduxSimple@3.7.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ReduxSimple&version=3.7.0
Install as a Cake Addin
#tool nuget:?package=ReduxSimple&version=3.7.0
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact itsmaintainers for support.

Redux Simple

Simple Stupid Redux Store using Reactive Extensions

Redux Simple is a .NET library based onRedux principle. Redux Simple is written with Rx.NET and built with the minimum of code you need to scale your whatever .NET application you want to design.

Example app

There is a sample UWP application to show how ReduxSimple library can be used and the steps required to make a C#/XAML application using the Redux pattern.

You can follow this link:https://www.microsoft.com/store/apps/9PDBXGFZCVMS

Getting started

Like the original Redux library, you will have to initialize a newState when creating aStore + you will createReducer functions each linked to anAction which will possibly update thisState.

In your app, you can:

  • Dispatch newAction to change theState
  • and listen to events/changes using theSubscribe method

You will need to follow the following steps to create your own Redux Store:

  1. CreateState definition
public record RootState{    public string CurrentPage { get; set; } = string.Empty;    public ImmutableArray<string> Pages { get; set; } = ImmutableArray<string>.Empty;}

Each State should be immutable. That's why we prefer to use immutable types for each property of the State.

  1. CreateAction definitions
public class NavigateAction{    public string PageName { get; set; }}public class GoBackAction { }public class ResetAction { }
  1. CreateReducer functions
public static class Reducers{    public static IEnumerable<On<RootState>> CreateReducers()    {        return new List<On<RootState>>        {            On<NavigateAction, RootState>(                (state, action) => state with { Pages = state.Pages.Add(action.PageName) }            ),            On<GoBackAction, RootState>(                state =>                {                    var newPages = state.Pages.RemoveAt(state.Pages.Length - 1);                    return state with {                        CurrentPage = newPages.LastOrDefault(),                        Pages = newPages                    };                }            ),            On<ResetAction, RootState>(                state => state with {                    CurrentPage = string.Empty,                    Pages = ImmutableArray<string>.Empty                }            )        };    }}
  1. Create a new instance of your Store
sealed partial class App{    public static readonly ReduxStore<RootState> Store;    static App()    {        Store = new ReduxStore<RootState>(CreateReducers());    }}
  1. And be ready to use your store inside your entire application...
ProductCompatible and additional computed target framework versions.
.NETnet5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. 
.NET Corenetcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. 
.NET Standardnetstandard2.0 is compatible. netstandard2.1 was computed. 
.NET Frameworknet461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. 
MonoAndroidmonoandroid was computed. 
MonoMacmonomac was computed. 
MonoTouchmonotouch was computed. 
Tizentizen40 was computed. tizen60 was computed. 
Xamarin.iOSxamarinios was computed. 
Xamarin.Macxamarinmac was computed. 
Xamarin.TVOSxamarintvos was computed. 
Xamarin.WatchOSxamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more aboutTarget Frameworks and.NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on ReduxSimple:

PackageDownloads
ReduxSimple.Entity

Simple Stupid Redux Store using Reactive Extensions

Rownd.Xamarin

Integrate simple, frictionless authentication into your Xamarin app.

ReduxSimple.DevTools

Simple Stupid Redux Store using Reactive Extensions

ReduxSimple.Uwp.DevTools

Simple Stupid Redux Store using Reactive Extensions - DevTools for UWP applications

ReduxSimple.Uwp.RouterStore

Simple Stupid Redux Store using Reactive Extensions - Binding between Store and Routing in UWP applications

GitHub repositories

This package is not used by any popular GitHub repositories.

VersionDownloads Last Updated
3.7.0 27,99712/20/2021
3.6.1 5,5464/19/2021
3.6.0 1,2832/15/2021
3.5.2 1,1501/13/2021
3.5.1 3,85210/16/2020
3.5.0 68810/10/2020
3.4.0 2,2354/24/2020
3.3.0 7084/16/2020
3.2.0 7444/16/2020
3.1.0 8112/26/2020
3.0.1 8841/25/2020
3.0.0 83911/11/2019
2.1.0 8119/9/2019
2.0.1 3,4155/30/2019
2.0.0 2,54912/22/2018
1.2.0 1,4015/21/2018
1.1.1 1,3934/29/2018
1.1.0 1,5494/28/2018
1.0.0 1,6991/22/2018
Downloads
Total59.6K
Current version28.0K
Per day average20
About
Owners

ReduxReactiveReactiveExtensionsRxReduxSimpleStateManagement

Share this package on FacebookShare this package on XUse the Atom feed to subscribe to new versions of ReduxSimple