You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
from is typically used when you have many links to join together all at once. The alternative way to join links is the concat method which joins two links together into one.
I was expecting I could implement my own authLink and the operations could be forwarded like with concat.
Actual outcome:
The custom link forwarding callback is never called.
How to reproduce the issue:
Create a custom link and then join it with an Apollo Link using from:
import{HttpLink}from'apollo-link-http';
...
constlogLink=newApolloLink((operation,forward)=>{returnforward(operation).map((data)=>{console.log('logging');returnforward(operation);})});constlink=ApolloLink.from([newHttpLink({ uri }),logLink,]);constclient=newApolloClient({cache: newInMemoryCache()link,});// `logging` will never be printed
The text was updated successfully, but these errors were encountered:
In
0.7.0
, when usingApolloLink.from
with a custom made link, the(operation, forward) => ...
callback is not called.Intended outcome:
After reading the docs:
I was expecting I could implement my own
authLink
and the operations could be forwarded like withconcat
.Actual outcome:
The custom link forwarding callback is never called.
How to reproduce the issue:
Create a custom link and then join it with an Apollo Link using
from
:The text was updated successfully, but these errors were encountered: