Skip to content

Commit 352c00e

Browse files
authored
Fix: Fix issue with errorLoggingLink (#1869)
1 parent 71ca18f commit 352c00e

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

package-lock.json

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/faustwp-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"isomorphic-fetch": "^3.0.0",
4242
"js-cookie": "^3.0.5",
4343
"js-sha256": "^0.9.0",
44-
"lodash": "^4.17.21",
45-
"zen-observable-ts": "^1.1.0"
44+
"lodash": "^4.17.21"
4645
},
4746
"scripts": {
4847
"dev": "concurrently \"npm:watch-*\" --prefix-colors \"auto\"",

packages/faustwp-core/src/apollo/errorLoggingLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
FetchResult,
44
NextLink,
55
Operation,
6+
Observable,
67
ServerError,
78
} from '@apollo/client';
8-
import { Observable } from 'zen-observable-ts';
99
import { errorLog } from '../utils/log.js';
1010

1111
/**

packages/faustwp-core/src/client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export function createApolloClient(authenticated = false) {
4545
typePolicies: {
4646
RootQuery: {
4747
queryType: true,
48+
fields: {
49+
viewer: {
50+
merge: true,
51+
},
52+
},
4853
},
4954
RootMutation: {
5055
mutationType: true,

0 commit comments

Comments
 (0)