hooks/helpers/index library

Functions

useInvalidationSub({required DAQCache cache, List<String>? cacheKeys, String? keyPattern, List<String>? cacheTags, required VoidCallback onInvalidated, String? logPrefix}) → void
Add invalidation subscription to the query hook
useMutationSub<TData>({required DAQCache cache, List<String>? cacheKeys, String? keyPattern, List<String>? cacheTags, required void onMutated(TData mutatedData), String? logPrefix}) → void
Add mutation subscription to the query hook
useTTLSub({required DAQCache cache, required List<String> cacheKeys, required Duration timeToLive, required VoidCallback onExpired, Duration checkInterval = const Duration(minutes: 1), String? logPrefix}) → void
Add TTL (Time To Live) subscription to periodically check cache entries and trigger refetch when they expire