React-Query v3.2 is officially released now so you don't need to use the beta version =)
@CodingNuggets3 жыл бұрын
Never used it with graphql. I saw you talking about this in your newest video and became interested. Thanks for this info Thomas. Strongly considering changing from Apollo.
@yourdadishere2 жыл бұрын
Dude, you have the best teaching accent--I mean, voice!
@JamesQQuick4 жыл бұрын
This was great. Thanks so much for this!
@Weibenfalk4 жыл бұрын
Thanks .. glad it helped! =)
@vasilispapasakellariou40742 жыл бұрын
Love your accent bro. Also your teaching
@dark9y83 жыл бұрын
Thank you, subscribed!
@AdrianTwarog4 жыл бұрын
Awesome!
@Weibenfalk4 жыл бұрын
Thanks man!
@gauravmithas23623 жыл бұрын
this was awesome tutorial, thanks @Weibenfalk
@bakbak18303 жыл бұрын
How i can upload files using react-query and graphql. I am really struggling on that end.
@hakuna_matata_hakuna2 жыл бұрын
thank you, this is how all tutorials should be you literally threw in how to use tokens and headers which would have been a long trip to stack overflow
@Weibenfalk2 жыл бұрын
Thanks! Truly appreciate your support!
@tronganhnguyenthanh11572 жыл бұрын
How can I fix the error Maximum call stack size exceeded in graphql ?
@juagarciaga3 жыл бұрын
Hello! pretty nice your tutorial :) thank you so much for your free content. I have a question: From where is the coming `query` tag on line 13? I'm not been able to reproduce the example when the query has variables.
@Weibenfalk3 жыл бұрын
Hi and thanks. I'm not exactly sure what you mean. If you look at the finished project files you can see how it works. You can name your query to whatever you want like below: const GET_COUNTRY = gql` query thisCanBeNamedAnytning($code: ID!) { country(code: $code) { name } } `; The param "code" is passed in via the object to the custom hook that is created for GraphQL fetching and then graphql-request uses that argument of "code" for the query.
@roberto93693 жыл бұрын
So nice man. Thanks
@jamesfromvenice3 жыл бұрын
Hey, will this work in "getServerSideProps" or "getInitialProps" when using Next.js?
@Weibenfalk3 жыл бұрын
Yes ... you can grab initial data and pass it along to react-query react-query.tanstack.com/guides/ssr
@syvirren573 жыл бұрын
Just found this, but could you do an example using this but for mutations?
@Weibenfalk3 жыл бұрын
I can maybe look into that.
@76Freeman3 жыл бұрын
Hi Weibenfalk, Thank you very much for the great video, I've been wondering if I should keep going with @apollo/client or give it a try with react-query and your video just convinced me to give it a try :) You've earned a new subscriber :)
@Weibenfalk3 жыл бұрын
Thank you!
@zomakaja3 жыл бұрын
But react-query does't have any knowledge of the qraphql schema, and therefore can't enforce type correctness on the client. Right?
@Weibenfalk3 жыл бұрын
Yes it can. You have to generate types with a tool for that. I’m doing that right now for my client. We’re actually using only the type generation from Apollo now
@Yassinebridii3 жыл бұрын
Check this out: graphql-code-generator.com/docs/plugins/typescript-react-query
@henriquekramer_2 жыл бұрын
amazing tkss
@avneet122844 жыл бұрын
So good.
@hugodsa892 жыл бұрын
dude the first sound literally gives a headache to anyone with headphones
@Weibenfalk2 жыл бұрын
Well. At least you’re awake and got your attention ;)
@hugodsa892 жыл бұрын
@@Weibenfalk didn’t mean to come off in a bad way mate. Just a heads up for future. 👍🏻
@Weibenfalk2 жыл бұрын
No worries ... I also think it's subjective and what gear people are using etc. Can't please all! But this one is not a good one .. I agree on that. Haven't used it that often.