Skip to main content

fuery 0.8.2 copy "fuery: ^0.8.2" to clipboard
fuery: ^0.8.2 copied to clipboard

Server state caching for Flutter: queries, infinite queries, and mutations with builder and listener widgets, retries, and background refetching.

example/lib/main.dart

import 'package:example/app/app.dart';
import 'package:example/app/data/preferences_storage.dart';
import 'package:flutter/material.dart';
import 'package:fuery/fuery.dart';
import 'package:shared_preferences/shared_preferences.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Queries with `persist` are stored here, so the todo list is on screen
  // before the first request finishes.
  final preferences = await SharedPreferencesWithCache.create(
    cacheOptions: const SharedPreferencesWithCacheOptions(),
  );
  Fuery.client = QueryClient(storage: PreferencesStorage(preferences));

  runApp(const TodoApp());
}
2
likes
0
points
1.28k
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Server state caching for Flutter: queries, infinite queries, and mutations with builder and listener widgets, retries, and background refetching.

Homepage
Repository (GitHub)
View/report issues

Topics

#react-query #state-management #server-state

License

unknown (license)

Dependencies

flutter, fuery_core

More

Packages that depend on fuery