fix: remove unused parameters from librarySeriesProvider

- Remove unused page and limit parameters from librarySeries provider
- Update library_series_page to call provider without parentheses
- Fix riverpod_generator compatibility issue
This commit is contained in:
Claude 2025-11-20 11:31:13 +00:00
parent e778e494b4
commit fafd4c5315
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ Future<List<String>> libraryGenres(Ref ref) async {
/// Provider for fetching all series in the current library /// Provider for fetching all series in the current library
@riverpod @riverpod
Future<GetLibrarysSeriesResponse?> librarySeries(Ref ref, {int page = 0, int limit = 50}) async { Future<GetLibrarysSeriesResponse?> librarySeries(Ref ref) async {
final api = ref.watch(authenticatedApiProvider); final api = ref.watch(authenticatedApiProvider);
final currentLibrary = await ref.watch(currentLibraryProvider.future); final currentLibrary = await ref.watch(currentLibraryProvider.future);

View file

@ -8,7 +8,7 @@ class LibrarySeriesPage extends HookConsumerWidget {
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final seriesAsync = ref.watch(librarySeriesProvider()); final seriesAsync = ref.watch(librarySeriesProvider);
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(