relay-runtime 0.0.0-main-147498ff → 0.0.0-main-59912af0
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/experimental.js +1 -1
- package/index.js +1 -1
- package/lib/store/RelayResponseNormalizer.js +9 -9
- package/package.json +1 -1
- package/relay-runtime-experimental.js +1 -1
- package/relay-runtime-experimental.min.js +1 -1
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/RelayResponseNormalizer.js.flow +3 -9
|
@@ -217,7 +217,7 @@ class RelayResponseNormalizer {
|
|
|
217
217
|
switch (selection.kind) {
|
|
218
218
|
case SCALAR_FIELD:
|
|
219
219
|
case LINKED_FIELD:
|
|
220
|
-
this._normalizeField(
|
|
220
|
+
this._normalizeField(selection, record, data);
|
|
221
221
|
break;
|
|
222
222
|
case CONDITION:
|
|
223
223
|
const conditionValue = Boolean(
|
|
@@ -301,7 +301,7 @@ class RelayResponseNormalizer {
|
|
|
301
301
|
});
|
|
302
302
|
break;
|
|
303
303
|
case MODULE_IMPORT:
|
|
304
|
-
this._normalizeModuleImport(
|
|
304
|
+
this._normalizeModuleImport(selection, record, data);
|
|
305
305
|
break;
|
|
306
306
|
case DEFER:
|
|
307
307
|
this._normalizeDefer(selection, record, data);
|
|
@@ -322,7 +322,7 @@ class RelayResponseNormalizer {
|
|
|
322
322
|
this._traverseSelections(selection.fragment, record, data);
|
|
323
323
|
break;
|
|
324
324
|
case ACTOR_CHANGE:
|
|
325
|
-
this._normalizeActorChange(
|
|
325
|
+
this._normalizeActorChange(selection, record, data);
|
|
326
326
|
break;
|
|
327
327
|
case RELAY_RESOLVER:
|
|
328
328
|
this._normalizeResolver(selection, record, data);
|
|
@@ -422,7 +422,6 @@ class RelayResponseNormalizer {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
_normalizeModuleImport(
|
|
425
|
-
parent: NormalizationNode,
|
|
426
425
|
moduleImport: NormalizationModuleImport,
|
|
427
426
|
record: Record,
|
|
428
427
|
data: PayloadData,
|
|
@@ -464,7 +463,6 @@ class RelayResponseNormalizer {
|
|
|
464
463
|
}
|
|
465
464
|
|
|
466
465
|
_normalizeField(
|
|
467
|
-
parent: NormalizationNode,
|
|
468
466
|
selection: NormalizationLinkedField | NormalizationScalarField,
|
|
469
467
|
record: Record,
|
|
470
468
|
data: PayloadData,
|
|
@@ -556,7 +554,6 @@ class RelayResponseNormalizer {
|
|
|
556
554
|
}
|
|
557
555
|
|
|
558
556
|
_normalizeActorChange(
|
|
559
|
-
parent: NormalizationNode,
|
|
560
557
|
selection: NormalizationActorChange,
|
|
561
558
|
record: Record,
|
|
562
559
|
data: PayloadData,
|
|
@@ -676,7 +673,6 @@ class RelayResponseNormalizer {
|
|
|
676
673
|
);
|
|
677
674
|
if (__DEV__) {
|
|
678
675
|
this._validateConflictingLinkedFieldsWithIdenticalId(
|
|
679
|
-
record,
|
|
680
676
|
RelayModernRecord.getLinkedRecordID(record, storageKey),
|
|
681
677
|
nextID,
|
|
682
678
|
storageKey,
|
|
@@ -758,7 +754,6 @@ class RelayResponseNormalizer {
|
|
|
758
754
|
if (__DEV__) {
|
|
759
755
|
if (prevIDs) {
|
|
760
756
|
this._validateConflictingLinkedFieldsWithIdenticalId(
|
|
761
|
-
record,
|
|
762
757
|
prevIDs[nextIndex],
|
|
763
758
|
nextID,
|
|
764
759
|
storageKey,
|
|
@@ -828,7 +823,6 @@ class RelayResponseNormalizer {
|
|
|
828
823
|
* Warns if a single response contains conflicting fields with the same id
|
|
829
824
|
*/
|
|
830
825
|
_validateConflictingLinkedFieldsWithIdenticalId(
|
|
831
|
-
record: Record,
|
|
832
826
|
prevID: ?DataID,
|
|
833
827
|
nextID: DataID,
|
|
834
828
|
storageKey: string,
|