LoginSignup
0
0

More than 3 years have passed since last update.

なぜだ!?actionsの引数で、どうしてもundefiendになってしまった時の話

Posted at

皆さんこんにちは!

今回は、エラー備忘録として書いていきます。

同じエラーに苦しんでいる方の参考になればなと思います。

まず、初めに以下の二つのコードを見ていただきたいと思います。

sotre/index.js
changeUserPhotoURL({ commit }, {updatePhotoURL}) {
      commit('changeUserPhotoURL', updatePhotoURL)
    },
sotre/index.js
changeUserPhotoURL({ commit }, updatePhotoURL) {
      commit('changeUserPhotoURL', updatePhotoURL)
    },

実行結果は

{updatePhotoURL}undefiend
updatePhotoURLにはしっかりと値は受け取れてます。

なぜ、このような結果になるのかは分かりません。。。

分かる方がいたら、ぜひコメント欄にて教えて頂くと幸いです。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0