<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Flutter</anon>
  </categories>
  <description>2年近くFlutterをやっていて、データストアにRiverpodを使っている場合 StatefulWidgetはまじで要らない子なんじゃないかと思い始めている。disposeする対象の管理が面倒でメモリリークする可能性があり、良いことがない。コードも色々増える。 StatefulWidgetを使いたい＝initStateを使いたいだと思うけど、画面が表示される度にイベントを発火したい的なことであれば、操作するデータストアのあるProviderをrefreshするとか、autoDisposeで破棄するとか、listenでリスナーを作るなどを組み合わせれば、同等のことが出来る。 個人的にはaut…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2022%2F11%2F03%2F013313&quot; title=&quot;StatefulWidgetを一切使わずRiverpodだけで頑張りたいお気持ち - Life is Really Short, Have Your 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-11-03 11:30:00</published>
  <title>StatefulWidgetを一切使わずRiverpodだけで頑張りたいお気持ち</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2022/11/03/013313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
