Skip to content

Commit

Permalink
fix(graphql): fix persisting options
Browse files Browse the repository at this point in the history
  • Loading branch information
matrunchyk committed May 25, 2020
1 parent a3add85 commit 4602033
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-oop",
"version": "1.0.1-beta.5",
"version": "1.0.1-beta.6",
"description": "A library based on Model-Repository patterns for Vue components. Usable for GraphQL and REST APIs.",
"keywords": [
"collections",
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/apolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function shouldPersist(_, dataId, data) {
const cache = new InStorageCache({
dataIdFromObject: result => (result.__typename && result.uuid ? `${result.__typename}:${result.uuid}` : defaultDataIdFromObject(result)),
fragmentMatcher: new CustomHeuristicFragmentMatcher(),
addPersistField: true,
// addPersistField: true,
storage: window.localStorage,
shouldPersist,
})
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@
"signature": "b2bc6d75bad32e43046865913804d41f0f88f98338aace443f450b3cbe1778a1"
},
"./src/graphql/apolloclient.ts": {
"version": "aed9d04af681fe96471485293be57adc70cecae7607546aab781e7d5c0517e9d",
"version": "2bdf76e19a946cb25b7d7fcae2d03841abad3186a899428178ae895178393229",
"signature": "ffe0dd32785560587f5fcbe42f0e75e40a5373294a95559fb7bf3fdcfc42400a"
},
"./node_modules/@types/zen-observable/index.d.ts": {
Expand Down Expand Up @@ -7502,7 +7502,6 @@
"./node_modules/pusher-js/index.d.ts",
"./src/graphql/customheuristicfragmentmatcher.ts",
"./src/graphql/pusherlink.ts",
"./src/graphql/apolloclient.ts",
"./node_modules/@types/zen-observable/index.d.ts",
"./node_modules/apollo-client/util/observable.d.ts",
"./node_modules/apollo-client/core/networkstatus.d.ts",
Expand All @@ -7525,6 +7524,8 @@
"./src/models/exceptions/invalidargumentexception.ts",
"./src/models/exceptions/validationexception.ts",
"./src/models/exceptions/unauthorizedexception.ts",
"./src/repositories/repository.ts",
"./src/index.ts",
"./node_modules/jest-diff/build/cleanupsemantic.d.ts",
"./node_modules/jest-diff/build/types.d.ts",
"./node_modules/jest-diff/build/difflines.d.ts",
Expand All @@ -7534,8 +7535,7 @@
"./node_modules/pretty-format/build/index.d.ts",
"./node_modules/@types/jest/index.d.ts",
"./node_modules/@types/jest/ts3.2/index.d.ts",
"./src/repositories/repository.ts",
"./src/index.ts"
"./src/graphql/apolloclient.ts"
]
},
"version": "3.8.3"
Expand Down

0 comments on commit 4602033

Please sign in to comment.