Upgrading flutter_riverpod 0.6 to 0.7
Breaking0.6.1 → 0.7.2Breaking2New2Fixed3
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- A provider that is not auto-disposed can no longer watch a provider that is auto-disposed.
- If you use Consumer, you now pass a builder function that receives the context, watch, and child instead of a single function.
Must act 2 items need code or config changes
What you must change
Breaking2
ref.watch on non .autoDispose providers can no longer read .autoDispose providers.
ref.watchConsumer is modified to match other builders like ValueListenableBuilder, now taking a builder callback with a child parameter.
ConsumerValueListenableBuilder