simple_auth_flutter_riverpod
simple_auth_flutter_riverpod copied to clipboard
Technical Question Regarding Auth Repository Provider
Thanks for this helpful repository. I've got a question for you, I'm pretty new to riverpod.
I saw that you are watching the FakeAuthRepository in this code with ref.watch
. What's the reason behind it? Why not put the class instantiation in the latter provider?
https://github.com/bizz84/simple_auth_flutter_riverpod/blob/main/lib%2Fsrc%2Ffeatures%2Fauthentication%2Fdata%2Ffake_auth_repository.dart#L25-L32