query/query library

Query system for advanced async state management

Provides React Query-like functionality with automatic caching, deduplication, and background refetching.

Classes

QueryKey
Utility to normalize query keys into stable strings
ZenCancelToken
A token that can be used to signal cancellation to async operations.
ZenInfiniteQuery<T>
A specialized query for infinite scrolling / pagination.
ZenMutation<TData, TVariables>
A reactive mutation that manages async data updates (creates/updates/deletes)
ZenQuery<T>
A reactive query that manages async data fetching with caching and cancellation
ZenQueryBuilder<T>
Widget that builds UI based on ZenQuery state
ZenQueryCache
Global cache manager for ZenQuery instances
ZenQueryConfig<T>
Configuration for ZenQuery
ZenStorage
Interface for persisting query data.

Enums

ZenMutationStatus
Status of a mutation
ZenQueryStatus
Status of a ZenQuery

Typedefs

ZenQueryFetcher<T> = Future<T> Function(ZenCancelToken cancelToken)
Function signature for data fetching with cancellation support

Exceptions / Errors

ZenCancellationException
Exception thrown when an operation is cancelled