Created
November 28, 2024 17:35
-
-
Save vbalagovic/3d50dee9e19bf8546917fad56dad7afb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
@riverpod | |
Future<Movie> movieDetails(MovieDetailsRef ref, String id) { | |
return ref.watch(movieServiceProvider.notifier).fetchMovie(id); | |
} | |
// After | |
@riverpod | |
Future<Movie> movieDetails(Ref ref, String id) { | |
return ref.watch(movieServiceProvider.notifier).fetchMovie(id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment