How to call graphql api via apollo client from common layout header file #13426
Unanswered
zinnah1995
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component in a page. Which depends on some data that comes from graphql api with useQuery (Apollo client). Now I want to use this component in my components/layout/header file to share with all of my pages. But When I move this component to header then it shows
My Apollo.js file is
I am new to apollo & nextjs.
I tried a lot to solve this issues but no luck favors. please help me.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions