<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>urasaku77</author_name>
  <author_url>https://blog.hatena.ne.jp/urasaku77/</author_url>
  <blog_title>Clean Architecture, Clean Life</blog_title>
  <blog_url>https://urasaku77.hatenablog.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
    <anon>Flutter-RiverPod</anon>
  </categories>
  <description>経緯 RiverPodのStateProviderを使う際、stateの監視が不要で、Notifier内で定義している関数を使いたかったので、watchではなく下記のようにreadを使用しました （コードはダミーです） Widget build(BuildContext context, WidgetRef ref) { return ElevatedButton( onTap: () =&gt; ref.read(counterProvider.notifier).update(state), Navigator.of(context).push( MaterialPageRoute( build…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Furasaku77.hatenablog.jp%2Fentry%2F2022%2F09%2F30%2F154159&quot; title=&quot;【Flutter】RiverPodでautodispose+readを使う際の注意点 - Clean Architecture, Clean Life&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-30 15:41:59</published>
  <title>【Flutter】RiverPodでautodispose+readを使う際の注意点</title>
  <type>rich</type>
  <url>https://urasaku77.hatenablog.jp/entry/2022/09/30/154159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
