We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe34fa commit e534276Copy full SHA for e534276
src/watcher.js
@@ -156,11 +156,13 @@ Watcher.prototype.set = function (value) {
156
)
157
return
158
}
159
- if (scope.$key) { // original is an object
160
- forContext.rawValue[scope.$key] = value
161
- } else {
162
- forContext.rawValue.$set(scope.$index, value)
163
- }
+ forContext._withLock(function () {
+ if (scope.$key) { // original is an object
+ forContext.rawValue[scope.$key] = value
+ } else {
+ forContext.rawValue.$set(scope.$index, value)
164
+ }
165
+ })
166
167
168
0 commit comments