I’ve worked though the entire React + Apollo Tutor...
# orm-help
m
I’ve worked though the entire React + Apollo Tutorial. I’m having a few issues around subscriptions. I notice on the page Realtime Updates with GraphQL Subscriptions in the second code block there is a variable
link
that is defined but never used? Did I miss something earlier or is something missing here? https://www.howtographql.com/react-apollo/8-subscriptions/
Ooh I think I figure it out.: const client = new ApolloClient({ link, // * needs update here * cache: new InMemoryCache() });
r
It doesn’t need an update, JavaScript supports passing the value directly if the key and value are the same.