Skip to content

Commit 79bfd68

Browse files
committed
Refine changesets
1 parent 6fa6aeb commit 79bfd68

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.changeset/sour-poets-leave.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/strong-shoes-sell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@apollo/client": minor
33
---
44

5-
Adds a `scalar` option to `InMemoryCache` field policies that dictates whether to parse the raw value using the custom scalar definition. Scalar parsing is now performed on cache reads.
5+
Adds a `scalar` option to `InMemoryCache` field policies that tells the cache which scalar to use when parsing or serializing the field value.
66

77
```ts
88
import { Scalar } from "@apollo/client";
@@ -26,3 +26,5 @@ new InMemoryCache({
2626
},
2727
});
2828
```
29+
30+
This scalar definition is now used to properly parse or serialize the field value for cache reads and writes as well as `cache.extract()` and `cache.restore()`.

0 commit comments

Comments
 (0)