This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Update docs on data.subscribeToMore
for React 16.
#2181
Labels
docs
Focuses on documentation changes
Trying to use
data.subscribeToMore
but the docs use the now deprecatedcomponentWillReceiveProps
.https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-subscribeToMore
Might be time to update docs to use
static getDerivedStateFromProps
, but this would involve storing the subscription returned fromsubscribeToMore
in React state b/c we no longer have access to the component instance.I’m curious to know what the standard way to use subscribeToMore is in React 16.
The text was updated successfully, but these errors were encountered: