LibraryActive

Riverpod 3.0

Riverpod 3.0 introduces offline persistence, mutations, automatic retry, and unified APIs.

Open source page

Product features

Product features

Automatic retry

Providers refresh on failure with exponential backoff.

Equality Filtering

All providers now use == to filter updates consistently.

Generic support (code-generation)

Generated providers can define type parameters.

Legacy Import

StateProvider, StateNotifierProvider, and ChangeNotifierProvider moved to legacy.dart import.

Mutations (experimental)

New mechanism for interfaces to react to side-effects.

Observer Interface Change

ProviderObserver methods now receive a single ProviderObserverContext object.

Offline persistence (experimental)

Providers can opt-in to persist state to a database.

Pause Out-of-View Providers

Providers that are not in view are paused by default.

Pause/Resume support

Temporarily pause a listener when using ref.listen.

Ref.mounted

Similar to BuildContext.mounted but for Ref.

Simplified Ref

Ref lost its type parameter; properties moved to Notifier classes.