We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm a starter of Riverpod and feel confused about the wrapping provider for instance. Therefore, I want to know why:
In your example:
// 1 final firebaseAuthProvider = Provider<FirebaseAuth>((ref) => FirebaseAuth.instance); // 2 final authStateChangesProvider = StreamProvider<User>( (ref) => ref.watch(firebaseAuthProvider).authStateChanges());
What if?
// Directly use its singleton? final authStateChangesProvider = StreamProvider<User>( (ref) => FirebaseAuth.instance.authStateChanges());
The text was updated successfully, but these errors were encountered:
The purpose here is accessing FirebaseAuth with riverpod for easy testing. Otherwise how can we Mock FirebaseAuth ?
Sorry, something went wrong.
Closing following changes in #94.
Feel free to open new issues if needed.
No branches or pull requests
Hi, I'm a starter of Riverpod and feel confused about the wrapping provider for instance. Therefore, I want to know why:
In your example:
What if?
The text was updated successfully, but these errors were encountered: