DotNetQuery.Blazor 1.0.0-beta.0

This is a prerelease version of DotNetQuery.Blazor.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetQuery.Blazor --version 1.0.0-beta.0
                    
NuGet\Install-Package DotNetQuery.Blazor -Version 1.0.0-beta.0
                    
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="DotNetQuery.Blazor" Version="1.0.0-beta.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetQuery.Blazor" Version="1.0.0-beta.0" />
                    
Directory.Packages.props
<PackageReference Include="DotNetQuery.Blazor" />
                    
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 DotNetQuery.Blazor --version 1.0.0-beta.0
                    
#r "nuget: DotNetQuery.Blazor, 1.0.0-beta.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 DotNetQuery.Blazor@1.0.0-beta.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=DotNetQuery.Blazor&version=1.0.0-beta.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DotNetQuery.Blazor&version=1.0.0-beta.0&prerelease
                    
Install as a Cake Tool

DotNet Query

Build codecov

A TanStack Query-inspired async data fetching and state management library for .NET and Blazor.

DotNet Query brings the proven data-fetching patterns of TanStack Query to the .NET ecosystem. It provides a structured, reactive approach to managing asynchronous data, caching, and mutations — removing boilerplate and giving you predictable loading, error, and success states out of the box.

Features

  • Queries — fetch async data with automatic caching, background refetching, and stale-while-revalidate semantics
  • Mutations — execute data-modifying operations with lifecycle callbacks and automatic cache invalidation
  • Reactive state — built on Rx.NET, every query and mutation exposes IObservable streams for composable async pipelines
  • Retry logic — configurable retry strategies with exponential backoff out of the box
  • Query deduplication — identical keys share a single cached query instance
  • CSR / SSR modesQueryExecutionMode controls singleton (WebAssembly) vs scoped (Server-Side Rendering) lifetime
  • DI integration — first-class support for Microsoft.Extensions.DependencyInjection
  • Blazor components<Suspense> and <Transition> components for declarative query rendering in Blazor

Documentation

Full API reference and usage guides are published via docfx and available at (link TBD).

Developer Documentation

Prerequisites

Tool Version
.NET SDK 10.0 (see global.json)
CSharpier 1.2.6 (installed as local tool)

A Nix flake is provided for reproducible dev environments. With direnv installed, run direnv allow in the repo root to activate it automatically.

Getting Started

# Restore tools and packages
dotnet tool restore
dotnet restore

# Build
dotnet build

# Run tests
dotnet test

# Check formatting
dotnet csharpier check .

Project Structure

src/
  DotNetQuery.Core/                          Core interfaces and implementations
  DotNetQuery.Blazor/                        Blazor components (Suspense, Transition)
  DotNetQuery.Extensions.DependencyInjection/ DI extension methods
tests/
  DotNetQuery.Core.Tests/
  DotNetQuery.Extensions.DependencyInjection.Tests/

CI / CD

The build pipeline runs on every push and pull request to main:

  1. Restore tools and packages
  2. CSharpier format check
  3. Release build
  4. Tests with code coverage (Cobertura)
  5. Coverage upload to Codecov

Dependency updates are managed automatically via Dependabot (weekly, for NuGet and GitHub Actions).

License

MIT — Copyright (c) 2026 Patrick Sachmann

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
1.2.0 89 5/27/2026
1.1.0 95 5/21/2026
1.0.0 88 5/20/2026
1.0.0-beta.10 50 5/19/2026
1.0.0-beta.9 64 4/14/2026
1.0.0-beta.8 63 4/11/2026
1.0.0-beta.7 56 4/11/2026
1.0.0-beta.6 53 4/11/2026
1.0.0-beta.5 50 4/11/2026
1.0.0-beta.4 51 4/11/2026
1.0.0-beta.3 75 4/10/2026
1.0.0-beta.2 56 4/10/2026
1.0.0-beta.0 57 4/10/2026
0.0.0-alpha.0.11 103 3/28/2026
0.0.0-alpha.0.10 100 3/28/2026