Module: createLazyLoadableLink
Functions
createLazyLoadableLink
▸ 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
Name | Type | Description |
---|---|---|
linkPromise | Promise <ApolloLink > | A Promise to an Apollo Link to wrap. |
Returns
ApolloLink