MemoizR.Reactive 0.1.0-alpha2

This is a prerelease version of MemoizR.Reactive.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MemoizR.Reactive --version 0.1.0-alpha2
                    
NuGet\Install-Package MemoizR.Reactive -Version 0.1.0-alpha2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MemoizR.Reactive" Version="0.1.0-alpha2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MemoizR.Reactive" Version="0.1.0-alpha2" />
                    
Directory.Packages.props
<PackageReference Include="MemoizR.Reactive" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MemoizR.Reactive --version 0.1.0-alpha2
                    
#r "nuget: MemoizR.Reactive, 0.1.0-alpha2"
                    
#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 MemoizR.Reactive@0.1.0-alpha2
                    
#: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=MemoizR.Reactive&version=0.1.0-alpha2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MemoizR.Reactive&version=0.1.0-alpha2&prerelease
                    
Install as a Cake Tool

MemoizR:Reactive: Simplifying Concurret Reactivity in .NET

This package extends the functionality provided by the foundational MemoizR package.

It closely resembles the behavior of signals in solid.js, while also incorporating essential thread-safety features. This implementation draws inspiration from the concepts found in reactively (https://github.com/modderme123/reactively).

Unlike ReactiveX, there's no need to handle subscriptions manually.

Reactivity

You can use MemoizR.Reactive to create reactive data flows easily:

var f = new ReactiveMemoFactory();
var v1 = f.CreateSignal(1, "v1");
var m1 = f.CreateMemoizR(async() => await v1.Get(), "m1");
var m2 = f.CreateMemoizR(async() => await v1.Get() * 2, "m2");
var r1 = f.CreateReaction(async() => await m1.Get() + await m2.Get(), "r1");
var f = new MemoFactory();
var v1 = f.CreateSignal(1, "v1");
var m1 = f.CreateMemoizR(async() => await v1.Get(), "m1");
var m2 = f.CreateMemoizR(async() => await v1.Get() * 2, "m2");


// The following example uses the TaskScheduler.FromCurrentSynchronizationContext method in a Windows Presentation Foundation (WPF) app to schedule
// https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskscheduler?view=net-7.0#specifying-a-synchronization-context
var UISyncContext = TaskScheduler.FromCurrentSynchronizationContext();
var fr = new ReactiveMemoFactory(UISyncContext);
var r1 = fr.CreateReaction(async() => await m1.Get() + await m2.Get(), "r1");
var r1 = fr.CreateReaction(async() => await m1.Get() + await m2.Get(), "r1");
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.6 163 11/27/2024
0.1.5 157 11/17/2024
0.1.4 163 5/25/2024
0.1.3 173 5/7/2024
0.1.2 147 5/6/2024
0.1.1 141 5/1/2024
0.1.1-rc.11 107 4/29/2024
0.1.1-rc.10 108 4/23/2024
0.1.1-rc.9 91 4/18/2024
0.1.1-rc.8 95 4/13/2024
0.1.1-rc.7 101 4/11/2024
0.1.1-rc.6 100 4/10/2024
0.1.1-rc.5 91 4/4/2024
0.1.1-rc.4 105 4/1/2024
0.1.1-rc.3 106 3/24/2024
0.1.1-rc.2 106 2/17/2024
0.1.1-rc.1 137 1/4/2024
0.1.0-rc9 228 11/6/2023
0.1.0-rc8 210 10/26/2023
0.1.0-rc7 171 10/24/2023
0.1.0-rc6 183 10/21/2023
0.1.0-rc5 164 10/19/2023
0.1.0-rc4 171 10/14/2023
0.1.0-rc3 166 10/13/2023
0.1.0-rc2 184 10/11/2023
0.1.0-rc10 164 11/12/2023
0.1.0-rc1 180 10/10/2023
0.1.0-rc.11 111 1/4/2024
0.1.0-alpha2 198 10/6/2023
0.1.0-alpha1 175 10/6/2023
0.0.4-rc4 190 9/24/2023
0.0.4-rc3 179 9/23/2023
0.0.4-rc2 173 9/23/2023
0.0.4-rc1 171 9/22/2023
0.0.4-beta1 159 9/21/2023
0.0.4-alpha1 173 9/19/2023