0

I am creating an application that only allows using React JS class component. UseQuery works only with function components, and the Query tag is deprecated. How can I get the data?

2

1 Answer 1

0

The solution that works for me is using tag that is imported from @apollo/client/react/components. and here is where I got this information. https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.