Riverpod 3 brings code-gen to every provider
Riverpod 3 standardises on the @riverpod annotation. The legacy StateProvider / ChangeNotifierProvider APIs are deprecated, and the runtime gets a 30% smaller binary footprint thanks to removing the manual scoping machinery.
Migration is mostly mechanical: run the codemod, accept the diffs, regenerate. Reading providers stays the same. The big behavioural change is autoDispose now defaults to true for all @riverpod providers — match it explicitly with `keepAlive: true`.
Read the original → Riverpod Docs
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.