Skip to content

Commit

Permalink
Avoid no-op call to getStoreKeyName.setStringify in policies.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Sep 27, 2023
1 parent 911232e commit 4f3d137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const checks = [
{
path: "dist/apollo-client.min.cjs",
limit: "38090",
limit: "38083",
},
{
path: "dist/main.cjs",
Expand All @@ -10,7 +10,7 @@ const checks = [
{
path: "dist/index.js",
import: "{ ApolloClient, InMemoryCache, HttpLink }",
limit: "32126",
limit: "32123",
},
...[
"ApolloProvider",
Expand Down
3 changes: 0 additions & 3 deletions src/cache/inmemory/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
getStoreKeyName,
isNonNullObject,
stringifyForDisplay,
canonicalStringify,
} from "../../utilities/index.js";
import type {
IdGetter,
Expand Down Expand Up @@ -54,8 +53,6 @@ import {
keyFieldsFnFromSpecifier,
} from "./key-extractor.js";

getStoreKeyName.setStringify(canonicalStringify);

export type TypePolicies = {
[__typename: string]: TypePolicy;
};
Expand Down

0 comments on commit 4f3d137

Please sign in to comment.