<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Vue</anon>
    <anon>Javascript</anon>
  </categories>
  <description>gettersでstateから任意の値を取り出すときにVuexではGettersのプロパティの返り値にfunctionを指定することで、Gettersのプロパティに関数の引数という形で直接値を渡す(アクセスできる)手法があります。これを メソッドスタイルアクセス と言います。 メソッドアクセススタイルについてはVuexの公式のGettersのドキュメントでも記載があります。 ref. ゲッター #メソッドスタイルアクセス | Vuex サンプルコードは以下のようになります。 Gettersでのプロパティの定義 getters: { hogeById: (state) =&gt; (id) =&gt; { …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2019%2F01%2F08%2F033121&quot; title=&quot;VuexにおけるGettersのメソッドスタイルアクセス - emahiro/b.log&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>2019-01-08 03:31:21</published>
  <title>VuexにおけるGettersのメソッドスタイルアクセス</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2019/01/08/033121</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
