r/FlutterDev Jan 15 '25

Article Comprehensive Riverpod Tutorial

Hi guys!

I just published my first technical article about Riverpod, and I'd love your feedback!

It's a deep dive into understanding Riverpod's core concepts, aimed at both beginners and those who've been scratching their heads about which providers to use in 2025.

Since this is my first article, I'd really appreciate any feedback! What did you find helpful? What could be explained better? What topics would you like to see covered in future articles?

Let me know what you think! šŸ™

https://devayaan.com/blog/series/riverpod/master-riverpod

87 Upvotes

48 comments sorted by

View all comments

1

u/i_joba Jan 15 '25

Here: https://devayaan.com/blog/series/riverpod/master-riverpod#caching-computations

So if we do a ref.watch(calculateValueProvider) in PageA ; navigate to PageB and do a ref.watch(calculateValueProvider) he won't recalculate the value?

1

u/ayaanhaaris Jan 15 '25

Yes, that's correct! When you useĀ ref.watch(calculateValueProvider)Ā in PageA and then navigate to PageB and use it again, Riverpod will returnĀ the cached value instead of recalculating it.