I want to automatically update user data, such as username or bio, whenever it changes. I was doing this with a StreamBuilder
, but I found Riverpod
and it looks cool. However, I am not sure if it is capable of updating instantly. So, what is the equivalent of StreamBuilder
with Riverpod
, if one exists?
Asked
Active
Viewed 156 times
0
-
2Is this what you want? https://riverpod.dev/docs/providers/stream_provider/ – MendelG Jan 05 '23 at 01:10
-
I was puzzled how you discovered RiverPod without knowing of StreamProvider? – Randal Schwartz Jan 05 '23 at 01:12
-
I'm doing things backwards – Boatti Jan 05 '23 at 01:21
1 Answers
2
You're looking for StreamProvider
:
StreamProvider is similar to FutureProvider but for Streams instead of Futures.

MendelG
- 14,885
- 4
- 25
- 52