[Question] Are there global hooks for triggering callbacks? #856
Replies: 4 comments
-
Write an Apollo Link |
Beta Was this translation helpful? Give feedback.
-
Thanks! I didn't realize that Apollo Links were like hooks. Seems like different terminology for similar things. 😄 |
Beta Was this translation helpful? Give feedback.
-
They are more than hooks. For example, the HTTP link is the one allowing you to make HTTP requests to a GraphQL API. |
Beta Was this translation helpful? Give feedback.
-
Perfect, thanks again! I will start digging into their documentation. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been researching this, but not found a definitive answer. Are there any global hooks, not component hooks, triggered when an Apollo query is executed, ideally after it completes? That is, I'm looking for something that would be like a callback executed each time a query is completed or when
InMemoryCache
is updated.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions