20260306 そろそろRiverpod 3.0の話をしよう

>100 Views

March 06, 26

スライド概要

profile-image

いとーけー@そらかぜ

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

ダウンロード

関連スライド

各ページのテキスト
1.

そろそろ Riverpod 3.0の話を しよう 2026.3.6 Mobile Act OSAKA 18 itok@そらかぜ

2.

itok@そらかぜ • いとうけい(itok) • の中の人 • モバイルアプリエンジニア 兼 CEO • 副業でフリーランス的 • https://itok.jp/, https://sorakaze.co.jp/, @itokjp

3.

所在地:京都市中京区 社員1人=自分

4.

実績 自社 受託 公私合わせて200件以上のアプリ開発に携わる

5.

iOS / Android / macOS / Windows / サーバ 一人でやってます(デザイン以外)

6.

そらコーデ

7.

関西圏のJR車内で広告でてます

8.

そろそろ Riverpod 3.0の話を しよう

9.

ここ最近の 開発プラットフォーム分布 SwiftUI (Swift) UIKit (Swift) Flutter (Dart)

10.

Riverpod • A Reactive Caching and Data-binding Framework • https://riverpod.dev/

11.

fi ffl Riverpod 3.0 • Uni cation of the Public APIs • Pause/Resume support • Provider life-cycle changes • O ine persistence (experimental) • Mutations (experimental) • Automatic retry • Ref.mounted • Generic support (code-generation) • New testing utilities • Statically safe scoping

12.

fi Riverpod 3.0 • Uni cation of the Public APIs • Pause/Resume support • Provider life-cycle changes

13.

fi Uni cation of the Public APIs

14.

Uni cation of the Public APIs • Noti er • AutoDisposeNoti er • FamilyNoti er • AutoDisposeFamilyNoti er fi fi fi fi fi fi Noti er

15.

Uni cation of the Public APIs • FutureProviderRef • StreamProviderRef • etc... fi Ref

16.

Uni cation of the Public APIs • StateProvider • StateNoti erProvider • ChangeNoti erProvider 非推奨 fi fi fi riverpod/legacy.dart

17.

Uni cation of the Public APIs クラスが統廃合されてシンプルに • 最初の学習コストが減りそう? fi •

18.

Pause / Resume support

19.

Pause / Resume support final subscription = ref.listen( todoListProvider, (previous, next) { // Do something with the new value }, ); subscription.pause(); subscription.resume();

20.

Pause / Resume support • 任意のタイミングで止められるの便利 • 不要な発火を抑えることができる

21.

Provider life-cycle changes

22.

Provider life-cycle changes • listenしているwidgetが見えなくなると、自動で listenを止める(pause) • widgetが表示されるとlistenも再開(resume) • watchも同様 • resumeされた時に最新の値だけがやってくる

23.

Provider life-cycle changes • たまに不安定・・・ • 「見えていない」の判定が難しいらしく止まらない ことがある • フィードバックもいろいろあがってるらしい

24.

ffl そのほかの気になり • O ine persistence (experimental) • Mutations (experimental) • Automatic retry • Ref.mounted

25.

Riverpod 3.0を使って 開発/保守を さらに安全/便利に