Articles
Persisting the cache in Flutter's GraphQLClient
How to persist a GraphQL client's cache with HiveStore, and how to avoid the mess on the Riverpod side that comes from its initialisation being asynchronous.
Everything with this tag, newest first, across all four kinds.
How to persist a GraphQL client's cache with HiveStore, and how to avoid the mess on the Riverpod side that comes from its initialisation being asynchronous.
Keep one provider whose value changes on logout, have every other provider watch it during initialisation, and forgetting to clear something stops being possible.
Using auto_route's AutoRouteGuard to check the authentication state as navigation happens and send unauthenticated users to the sign-in screen. Covers the case where you inject with riverpod.