Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommerceApiClientFactory

Index

Constructors

  • new CommerceApiClientFactory(graphqlServiceUrl: string, connector: string, defaultRequestHeaders?: HeadersInit, defaultAnonymousCredentials?: Credentials, ssrMode?: boolean, initialToken?: string): CommerceApiClientFactory
  • Parameters

    • graphqlServiceUrl: string
    • connector: string
    • Optional defaultRequestHeaders: HeadersInit
    • Optional defaultAnonymousCredentials: Credentials
    • ssrMode: boolean = false
    • Optional initialToken: string

    Returns CommerceApiClientFactory

Methods

  • addApolloState(props: any): any
  • Parameters

    • props: any

    Returns any

  • getApolloClient(initialState?: any): ApolloClient<NormalizedCacheObject>
  • Parameters

    • Optional initialState: any

    Returns ApolloClient<NormalizedCacheObject>

  • getCurrentToken(): undefined | string
  • Returns undefined | string

  • getDataFromTree(tree: ReactElement<any, string | JSXElementConstructor<any>>): Promise<SSRContent>
  • Parameters

    • tree: ReactElement<any, string | JSXElementConstructor<any>>

    Returns Promise<SSRContent>

Generated using TypeDoc