getDocumentProps(pageProps) and useQuery/Apollo Client in React #540
Unanswered
Sokratesli
asked this question in
Help & Questions
Replies: 1 comment
-
(Seems like a user land issue.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello
I want to include data from a graphql DB via usequery into the getDocumentProps(pageProps) function. Unfortunately this seems to break the rules of React-Hook.
I already tried to write a function which writes the data into the pageProps. Did not work. Code example attached (based on onBeforeRender):
Beta Was this translation helpful? Give feedback.
All reactions