diff --git a/lib/src/features/movies/data/movies_repository.dart b/lib/src/features/movies/data/movies_repository.dart index 478db46..6284661 100644 --- a/lib/src/features/movies/data/movies_repository.dart +++ b/lib/src/features/movies/data/movies_repository.dart @@ -127,10 +127,6 @@ Future fetchMovies( cancelToken: cancelToken, ); } else { - // Debounce the request. By having this delay, consumers can subscribe to - // different parameters. In which case, this request will be aborted. - await Future.delayed(const Duration(milliseconds: 500)); - if (cancelToken.isCancelled) throw AbortedException(); // use search endpoint return moviesRepo.searchMovies( queryData: queryData, diff --git a/lib/src/features/movies/data/movies_repository.g.dart b/lib/src/features/movies/data/movies_repository.g.dart index cf2d737..e151b4e 100644 --- a/lib/src/features/movies/data/movies_repository.g.dart +++ b/lib/src/features/movies/data/movies_repository.g.dart @@ -181,7 +181,7 @@ class _MovieProviderElement extends AutoDisposeFutureProviderElement int get movieId => (origin as MovieProvider).movieId; } -String _$fetchMoviesHash() => r'd42ea205e64124a9a9de14afbfdc6f47106334cc'; +String _$fetchMoviesHash() => r'1635ab7e809adc3cfcc0a11a49405eaa429a390f'; /// Provider to fetch paginated movies data ///