1. Introduction to Riverpod 2.x

Notes

In this section we'll explore the new Riverpod APIs, using our eCommerce app for reference.

Here's what we will cover:

  • New starter project + walkthrough of the code changes
  • Riverpod Generator package: overview
  • How to convert Provider and FutureProvider to the new @riverpod syntax
  • Using code generation to overcome the limitations of the family modifier
  • How to convert StateNotifier subclasses to AsyncNotifier
  • How to check if an AsyncNotifier is mounted
  • How to write unit tests for AsyncNotifier subclasses

By the end, you'll be able to make the most of Riverpod Generator and the most important Riverpod 2.0 APIs.

Resources

For a good high-level overview of what's new in Riverpod 2.0, watch this video by Randal Schwartz

To learn the new APIs in-depth, read these articles from my site:


Complete and Continue  
Discussion

2 comments