GraphQL query is not executed when I wrap the class component with withAuthenticator method for Authentication #28681
Unanswered
ranopriyo-neogy
asked this question in
Help
Replies: 2 comments 2 replies
-
If you check the source code of So you can't wrap a page component with it. Try creating a separate component (maybe with a static query) and wrap it instead - and render the result in your page component. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks a ton... I used import Amplify, { Auth } from 'aws-amplify' instead and that worked ! |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement Authentication on my simple Gatsby App. When I try to wrap the class component with withAuthenticator , the GraphQL query no longer executes. When i remove the withAuthenticator it works fine. Can you please take a look and suggest an alternative.
I am using the starter project - https://github.com/hasura/gatsby-gitbook-starter
Beta Was this translation helpful? Give feedback.
All reactions