Skip to content

Commit af77f87

Browse files
committed
Fix calling coerceToValue more than once accidentally
1 parent 42e1783 commit af77f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cache/inmemory/entityStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export abstract class EntityStore implements NormalizedCache {
446446
const newValue = this.coerceValue(value, coerce, scalar);
447447
changed ||= newValue !== value;
448448

449-
return [storeFieldName, this.coerceValue(value, coerce, scalar)];
449+
return [storeFieldName, newValue];
450450
});
451451

452452
return changed ? Object.fromEntries(entries) : obj;

0 commit comments

Comments
 (0)