Skip to content

Commit

Permalink
Merge pull request #273 from mobxjs/ogm-shallow-group-arrays
Browse files Browse the repository at this point in the history
ObservableGroupMap: use deep:false when creating group arrays
  • Loading branch information
NaridaL authored Aug 5, 2020
2 parents cc786b3 + 8889f54 commit 7bc6f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObservableGroupMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class ObservableGroupMap<G, T> extends ObservableMap<G, IObservableArray<
private _getGroupArr(key: G) {
let result = super.get(key)
if (undefined === result) {
result = observable([], { name: `GroupArray[${this._keyToName(key)}]` })
result = observable([], { name: `GroupArray[${this._keyToName(key)}]`, deep: false })
super.set(key, result)
}
return result
Expand Down

0 comments on commit 7bc6f1f

Please sign in to comment.