flutter_tanstack_query 0.0.1+1
flutter_tanstack_query: ^0.0.1+1 copied to clipboard
A powerful data fetching and state management package for Flutter inspired by TanStack Query (React Query). Features automatic caching, background updates, offline support, and optimistic UI updates.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.1+1 - 2025-07-24 #
Changed #
- Updated README badges to use shields.io instead of badges.bar for better reliability and faster updates
- Improved badge display with consistent styling
0.0.1 - 2025-07-24 #
Added #
- Initial release by Haraprosad Biswas
- Complete TanStack Query implementation for Flutter
- Support for queries, mutations, and infinite queries
- Automatic caching with intelligent background updates
- Offline support with persistent storage using Hive
- Network-aware query execution with connectivity monitoring
- Optimistic UI updates for better user experience
- Query invalidation and refetching capabilities
- Comprehensive error handling and retry mechanisms
- Clean architecture integration examples (BLoC, Riverpod, GetX)
- Flutter-specific optimizations and lifecycle management
- Extensive documentation and examples for beginners
- Testing utilities and best practices guide
Features #
- UseQuery: Declarative data fetching with automatic caching
- UseMutation: Handle POST/PUT/DELETE operations with optimistic updates
- UseInfiniteQuery: Built-in pagination and infinite scrolling support
- QueryClient: Centralized query management and cache control
- QueryListener: React to query state changes without UI rebuilds
- Background Updates: Automatic refetching when app becomes active
- Offline Mode: Works seamlessly without internet connection
- TypeScript-like: Strong typing support for better developer experience