apollo-link-token-refresh icon indicating copy to clipboard operation
apollo-link-token-refresh copied to clipboard

Example uses ApolloLink, but documentation does not mention where it comes from

Open thomergil opened this issue 4 years ago • 1 comments

Would be good to document npm (or yarn) install of apollo-link and if the example included the import it. Thank you.

thomergil avatar Jun 10 '20 10:06 thomergil

@thomergil, ApolloLink comes from apollo-link package. A new instance of this package is passed in the link prop of ApolloClient like so:

const client = new ApolloClient({
    link: ApolloLink.from([
        new TokenRefreshLink({
...

Hope this helps.

sk8Guerra avatar Jul 24 '20 22:07 sk8Guerra