diff --git a/src/cache/write.ts b/src/cache/write.ts index 51d2065..3f29f7d 100644 --- a/src/cache/write.ts +++ b/src/cache/write.ts @@ -49,9 +49,7 @@ export const writeOperationToCache = ( const fieldNameWithArguments = getFieldNameWithArguments(field, variables); const fieldValue = parentJson[originalFieldName]; - if (!Array.isArray(parentCache)) { - parentCache[REQUESTED_KEYS].add(fieldNameWithArguments); - } + parentCache[REQUESTED_KEYS].add(fieldNameWithArguments); // either scalar type with no selection, or a null/undefined value const subSelectionSet = field.selectionSet;