@symbo.ls/atoms 2.11.309 → 2.11.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Collection.js +7 -4
- package/package.json +2 -2
package/Collection.js
CHANGED
|
@@ -16,6 +16,7 @@ export const Collection = {
|
|
|
16
16
|
if (isNot(param)('array', 'object')) return
|
|
17
17
|
|
|
18
18
|
const { __ref: ref } = el
|
|
19
|
+
param = deepClone(param)
|
|
19
20
|
|
|
20
21
|
if (ref.__collectionCache) {
|
|
21
22
|
const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
|
|
@@ -82,6 +83,7 @@ export const Collection = {
|
|
|
82
83
|
if (isNot(param)('array', 'object')) return
|
|
83
84
|
|
|
84
85
|
const { __ref: ref } = el
|
|
86
|
+
param = deepClone(param)
|
|
85
87
|
|
|
86
88
|
if (ref.__stateCollectionCache) {
|
|
87
89
|
const equals = JSON.stringify(param) === JSON.stringify(ref.__stateCollectionCache)
|
|
@@ -89,11 +91,11 @@ export const Collection = {
|
|
|
89
91
|
ref.__noCollectionDifference = true
|
|
90
92
|
return
|
|
91
93
|
} else {
|
|
92
|
-
ref.__stateCollectionCache =
|
|
94
|
+
ref.__stateCollectionCache = param
|
|
93
95
|
delete ref.__noCollectionDifference
|
|
94
96
|
}
|
|
95
97
|
} else {
|
|
96
|
-
ref.__stateCollectionCache =
|
|
98
|
+
ref.__stateCollectionCache = param
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
const obj = {
|
|
@@ -125,6 +127,7 @@ export const Collection = {
|
|
|
125
127
|
if (isNot(param)('array', 'object')) return
|
|
126
128
|
|
|
127
129
|
const { __ref: ref } = el
|
|
130
|
+
param = deepClone(param)
|
|
128
131
|
|
|
129
132
|
if (ref.__propsCollectionCache) {
|
|
130
133
|
const equals = JSON.stringify(param) === JSON.stringify(ref.__propsCollectionCache) // eslint-disable-line
|
|
@@ -132,11 +135,11 @@ export const Collection = {
|
|
|
132
135
|
ref.__noCollectionDifference = true
|
|
133
136
|
return
|
|
134
137
|
} else {
|
|
135
|
-
ref.__propsCollectionCache =
|
|
138
|
+
ref.__propsCollectionCache = param
|
|
136
139
|
delete ref.__noCollectionDifference
|
|
137
140
|
}
|
|
138
141
|
} else {
|
|
139
|
-
ref.__propsCollectionCache =
|
|
142
|
+
ref.__propsCollectionCache = param
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
const obj = {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.311",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "a8518a806aae49ea0e9ae35209dfbbc0f0a03253",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|