fix: types error.
This commit is contained in:
parent
b031797271
commit
4ef5b5b3bc
@ -1,5 +1,5 @@
|
||||
overwrite: true
|
||||
schema: "http://api.blog.localhost/graphql"
|
||||
schema: "http://localhost:7132/graphql"
|
||||
generates:
|
||||
commons/graphql/generated.tsx:
|
||||
plugins:
|
||||
|
@ -1,5 +1,11 @@
|
||||
import { useMemo } from "react";
|
||||
import { ApolloClient, from, HttpLink, InMemoryCache } from "@apollo/client";
|
||||
import {
|
||||
ApolloClient,
|
||||
from,
|
||||
HttpLink,
|
||||
InMemoryCache,
|
||||
NormalizedCacheObject,
|
||||
} from "@apollo/client";
|
||||
import { concatPagination } from "@apollo/client/utilities";
|
||||
import { equals, mergeDeepWith } from "ramda";
|
||||
import { onError } from "@apollo/client/link/error";
|
||||
@ -11,7 +17,7 @@ export const client = new ApolloClient({
|
||||
|
||||
export const APOLLO_STATE_PROP_NAME = "__APOLLO_STATE__";
|
||||
|
||||
let apolloClient: ApolloClient<InMemoryCache>;
|
||||
let apolloClient: ApolloClient<NormalizedCacheObject>;
|
||||
|
||||
function createApolloClient() {
|
||||
const httpLink = new HttpLink({
|
||||
|
Loading…
Reference in New Issue
Block a user