react-native-onyx 1.0.52 → 1.0.53
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/dist/web.development.js +5 -0
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/Onyx.js +5 -0
- package/package.json +1 -1
package/lib/Onyx.js
CHANGED
|
@@ -1134,6 +1134,11 @@ function mergeCollection(collectionKey, collection) {
|
|
|
1134
1134
|
if (isKeyMatch(collectionKey, dataKey)) {
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
|
+
|
|
1138
|
+
if (process.env.NODE_ENV === 'development') {
|
|
1139
|
+
throw new Error(`Provided collection doesn't have all its data belonging to the same parent. CollectionKey: ${collectionKey}, DataKey: ${dataKey}`);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1137
1142
|
hasCollectionKeyCheckFailed = true;
|
|
1138
1143
|
Logger.logAlert(`Provided collection doesn't have all its data belonging to the same parent. CollectionKey: ${collectionKey}, DataKey: ${dataKey}`);
|
|
1139
1144
|
});
|