Skip to main content

Module: createLazyLoadableLink

Functions

createLazyLoadableLink(linkPromise): ApolloLink

Creates a lazy-loadable Apollo Link. Useful when you want to use a given Apollo Link in a production environment conditionally, i.e. only load it when necessary.

Parameters

NameTypeDescription
linkPromisePromise<ApolloLink>A Promise to an Apollo Link to wrap.

Returns

ApolloLink

Defined in

src/createLazyLoadableLink.ts:9