teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2020/08/10 16:05

投稿

rubytomato
rubytomato

スコア1752

answer CHANGED
@@ -103,4 +103,18 @@
103
103
  また、JavaScriptにはPOJO (plain old javascript objects)という言葉があり、これがVue.jsの言う”単なるプレーンなJavaScript オブジェクト”と同じ意味なのかも不明です。
104
104
 
105
105
  * [What is a plainObject in JavaScript?](https://www.quora.com/What-is-a-plainObject-in-JavaScript)
106
- * [The difference between object and plain object in JavaScript?](https://stackoverflow.com/questions/52453407/the-difference-between-object-and-plain-object-in-javascript)
106
+ * [The difference between object and plain object in JavaScript?](https://stackoverflow.com/questions/52453407/the-difference-between-object-and-plain-object-in-javascript)
107
+
108
+ ### 追記 (2020/08/11)
109
+
110
+ だいぶ昔ですが、似た現象での質問がありました。
111
+
112
+ * [Why does vue.js not update the dom with datepicker using moment.js](https://stackoverflow.com/questions/40959483/why-does-vue-js-not-update-the-dom-with-datepicker-using-moment-js)
113
+
114
+ こちらの回答によれば
115
+
116
+ > There are some caveats on reactivity of vue and as Object.observe is obsolete now, it can not track if an javascript object has changed internally, unless you clone the object and create a new object which is needed in your case.
117
+
118
+ > vueのreactivityにはいくつかの注意点があります。Object.observeは現在廃止されているため、オブジェクトのクローンを作成して必要な新しいオブジェクトを作成しない限り、JavaScriptオブジェクトが内部で変更されたかどうかを追跡できません。
119
+
120
+ とのことです。