@@ -32,7 +32,7 @@ final nextPuzzleProvider = FutureProvider.autoDispose.family<PuzzleContext?, Puz
3232
3333/// Fetches a storm of puzzles.
3434final stormProvider = FutureProvider .autoDispose <PuzzleStormResponse >((Ref ref) {
35- return ref.withClient ((client) => PuzzleRepository (client) .storm () );
35+ return ref.read (puzzleRepositoryProvider) .storm ();
3636}, name: 'StormProvider' );
3737
3838/// Fetches a puzzle from the local storage if available, otherwise fetches it from the server.
@@ -43,7 +43,7 @@ final puzzleProvider = FutureProvider.autoDispose.family<Puzzle, PuzzleId>((
4343 final puzzleStorage = await ref.watch (puzzleStorageProvider.future);
4444 final puzzle = await puzzleStorage.fetch (puzzleId: id);
4545 if (puzzle != null ) return puzzle;
46- return ref.withClient ((client) => PuzzleRepository (client) .fetch (id) );
46+ return ref.read (puzzleRepositoryProvider) .fetch (id);
4747}, name: 'PuzzleProvider' );
4848
4949/// Fetches the daily puzzle.
@@ -107,7 +107,7 @@ final stormDashboardProvider = FutureProvider.autoDispose.family<StormDashboard?
107107 Ref ref,
108108 UserId id,
109109) {
110- return ref.withClient ((client) => PuzzleRepository (client) .stormDashboard (id) );
110+ return ref.read (puzzleRepositoryProvider) .stormDashboard (id);
111111}, name: 'StormDashboardProvider' );
112112
113113/// Fetches available puzzle themes.
0 commit comments