simple_auth_flutter_riverpod icon indicating copy to clipboard operation
simple_auth_flutter_riverpod copied to clipboard

Technical Question Regarding Auth Repository Provider

Open m5x5 opened this issue 5 months ago • 0 comments

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

m5x5 avatar Sep 16 '24 19:09 m5x5