Gatsby Head API and client-only routes #36551
Unanswered
aaronadamsCA
asked this question in
Help
Replies: 1 comment 4 replies
-
Hi, @aaronadamsCA, In the future Related comment |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a client-only route with
param.id
. This ID is used to fetch client-only data using Apollo Client.Now I want to implement the Gatsby Head API; but the
head
function executes outside the root element, so my graph provider (and hence my Apollo Client) are unavailable.How might I safely work around this gap? Initializing Apollo Client all over again is not a good solution, but I'm hoping there might be some other way.
Beta Was this translation helpful? Give feedback.
All reactions