Join Slack
Powered by
I’ve worked though the entire React + Apollo Tutor...
# orm-help
m
Mitchell
03/23/2021, 7:41 PM
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/
Mitchell
03/23/2021, 8:36 PM
Ooh I think I figure it out.: const client = new ApolloClient({ link, //
* needs update here *
cache: new InMemoryCache() });
r
Ryan
03/24/2021, 7:18 AM
It doesn’t need an update, JavaScript supports passing the value directly if the key and value are the same.
3
Views
Open in Slack
Previous
Next