0

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?

MendelG
  • 14,885
  • 4
  • 25
  • 52
Boatti
  • 151
  • 12

1 Answers1

2

You're looking for StreamProvider:

StreamProvider is similar to FutureProvider but for Streams instead of Futures.

MendelG
  • 14,885
  • 4
  • 25
  • 52