React-Query Tutorial - OUTDATED - LINK TO THE NEW VERSION IN THE DESCRIPTION

Sdílet
Vložit
  • čas přidán 17. 10. 2020
  • 📘New Course: Build full-stack React Typescript applications tsreact.maksimivanov.com/s/ytd
    This video is outdated, you can find an updated version here • React Query 3 - CRUD L...
    In this react tutorial i'm showing how to use the React Query library to fetch the data in your React application. You can forget about the useEffect hook for data fetching with this library.
    The API looks is similar to React-Apollo but for REST APIs instead of GraphQL.
    🐦 Twitter: / ivanov_dev
    I write about React and TypeScript there
    Repo: github.com/satansdeer/react-q...
    Discord: / discord

Komentáře • 57

  • @skube
    @skube Před 3 lety +2

    I think the interface has changed slightly since the recording react-query.tanstack.com/guides/migrating-to-react-query-3#useinfinitequery-is-now-bi-directional

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      I have a video about react query 3 as well

  • @JackSparrah
    @JackSparrah Před 3 lety +2

    Thanks for helping make sense of react-query! This is probably the best tutorial I've seen yet

  • @radezzientertainment501
    @radezzientertainment501 Před 3 lety +17

    you're the reason im getting a bonus this year, thanks my friend

    • @SogMosee
      @SogMosee Před 3 lety

      React-query helped you get a bonus? You sped up an application?

    • @radezzientertainment501
      @radezzientertainment501 Před 3 lety +1

      @@SogMosee not this specific video haha! Just his channel in general

  • @zerocodercool
    @zerocodercool Před 3 lety

    Nice into to React Query!!!, Yes, it would be wonderful to see the testing in action, or maybe some other hooks!

  • @miso85
    @miso85 Před 3 lety +1

    Great content and this one was at a perfect time for me to use on a current project.

  • @StrangeIndeed
    @StrangeIndeed Před 3 lety

    You make a lot of useful content and I love it. I regret not looking into this channel earlier. I feel dumb saying that, but your thumbnails initially scared me away

  • @unknownman1
    @unknownman1 Před 3 lety +1

    Thanks man, your videos are very helpful

  • @dgaa1991
    @dgaa1991 Před 3 lety +1

    Thanks for the brilliant video! It would be nice to see an updated version with react-query v.3.x.x!

  • @farseenabdulsalam6246
    @farseenabdulsalam6246 Před 3 lety

    Well explained :) concise and full of useful info.

  • @alessandromuraro6610
    @alessandromuraro6610 Před 3 lety

    Thanks, nice tutorial!

  • @salvadoremmanuelkain
    @salvadoremmanuelkain Před 3 lety +1

    Thanks, man this is solid gold adamantium stuff with vibranium and diamonds inscrustations :fire:

  • @OleksandrDanylchenko2k

    Great explanation, thanks

  • @Vickersyt
    @Vickersyt Před 3 lety

    Great tutorial :)

  • @juanmadelaflor6406
    @juanmadelaflor6406 Před 3 lety

    Thank you!

  •  Před 3 lety

    This content is so practical. I love your videos. I am struggling with situation when I want to fetch data with many parameter like filter and sorting criteria. Where to put these parameter to useQuery???

  • @IntotheWildscape
    @IntotheWildscape Před 3 lety

    Good one..so useful

  • @bogdanandrushchenko3304

    Thank`s for understandable content

  • @MrDoctorgaby
    @MrDoctorgaby Před 3 lety

    Hello Maksim! great tutorial. I was wondering, would you use react-query in production(reliability-wise)? I was thinking to switch from redux. Good luck and keep good content coming. You are awesome. Thank you for doing this

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      😊 Thanks. I don't use it personally in production right now, but I stole their API design to implement something very similar. The lib is super pleasant to use. Is it reliable? I don't really know

  • @antoniorivera6014
    @antoniorivera6014 Před 3 lety

    Awesome!

  • @juanmadelaflor6406
    @juanmadelaflor6406 Před 3 lety +1

    Hi ppl, I consider my self an intermediate JS programmer, but i always get lost between curly braces when so many nested callbacks need te be defined. Should I define my self as a newbie instead of intermediate? :D Gonna improve practicing?

  • @chidanandamn1580
    @chidanandamn1580 Před 3 lety

    We are hitting the end point regularly for each todo item.. won't it consume more amount if we are using AWS or any other server

    • @satansdeer1
      @satansdeer1  Před 3 lety

      We are not, it is a mutation and it performs a request only when the user clicks the "remove" button. Also you can cache the API responses on backend.

  • @nazarfernos184
    @nazarfernos184 Před 3 lety

    Спасибо за туториал

  • @kylehenson2259
    @kylehenson2259 Před 3 lety

    Does react query start fatching after component mount and also after any change? Like useEffect, i know compare this two thing are not correct , but i want know while we use react query after that we dont need useEffect for fatching data?

  • @bullit_s
    @bullit_s Před 3 lety

    Спасибо :)

  • @Wakkyguy
    @Wakkyguy Před 3 lety

    Please update this tutorial for React Query v3.

  • @GAccountMe
    @GAccountMe Před 3 lety

    Спасибо за урок! Было бы здорово, если бы чуть медленнее говорил=)

  • @wargonzo5761
    @wargonzo5761 Před 3 lety

    спасибо за видео! очень полезно, однако, как уже заметили тут в комментах, не совсем понятны плюсы/минусы технологии, не очень понятно когда следует ее использовать. возможно, для вас это очевидные вещи, но мне, новичку, так не кажется

    • @satansdeer1
      @satansdeer1  Před 3 lety

      спасибо за фидбек, я планирую стрим о получении данных с сервера, и там показать как это выглядит без этой библиотеки

  • @jahadempire7934
    @jahadempire7934 Před 3 lety

    what vscode theme he is using?

  • @ahmedadebisi881
    @ahmedadebisi881 Před 3 lety +1

    Hi Maksim, Nice Video. Please what vs code theme is this.

    • @satansdeer1
      @satansdeer1  Před 3 lety

      material theme, ocean blue high contrast i think

  • @Lumi265
    @Lumi265 Před 3 lety

    Hello guys is it possible than this tutoriel is no longer functional? about an error I have *No QueryClient setError: No QueryClient set, use QueryClientProvider* Or i did something wrong

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Yes it got obsolete, check the newer one on my channel. The one about CRUD application using reactQuery

    • @Lumi265
      @Lumi265 Před 3 lety

      @@satansdeer1 ok I will look that, thanks so much for your work

  • @user-sf1zl9sk9g
    @user-sf1zl9sk9g Před 3 lety +1

    А в чем преимущество данной библиотеки? Обёртка над стандартными вещами вроде isLoading isError?

    • @satansdeer1
      @satansdeer1  Před 3 lety +2

      да плюс оптимистичный фетч, автоматическое обновление данных и про кеш не надо думать. на графкюэль легко мигрировать

    • @user-sf1zl9sk9g
      @user-sf1zl9sk9g Před 3 lety

      @@satansdeer1 может лучше сразу на Graphql (apollo) мигрировать? Там все таки подписки в придачу

    • @satansdeer1
      @satansdeer1  Před 3 lety +1

      так а если апи не графкюэль?

    • @satansdeer1
      @satansdeer1  Před 3 lety +2

      ну а так да, тут вместо подписок есть автоматический рефетч по интервалу

    • @rtnjo6936
      @rtnjo6936 Před 3 lety +1

      @@satansdeer1 Максим не думали сделать проект на Некст js со всеми r-query, tsx И т.д. Очень хотелось бы свежака на next

  • @DIEZ919191
    @DIEZ919191 Před 3 lety

    Привет! Делай пожалуйста побольше вижео среднего уровня, нубскими видео уже засорен весь интернет)) спасибо!!

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Камон, я только что сам попробовал эту библиотеку, надо еще поразбираться

  • @rtnjo6936
    @rtnjo6936 Před 3 lety +1

    please Maksim make tutorial nextjs+query like 3hr long)

    • @satansdeer1
      @satansdeer1  Před 3 lety

      Wow, 3hr long form now probably only if it would he a live stream

  • @yangwang9320
    @yangwang9320 Před 3 lety +1

    沙发

  • @enshelf5614
    @enshelf5614 Před 3 lety

    Nice job, however, the tutorial is outdated as RQ has a newer version and most of the methods have alternate access patterns.
    e.g. useQueryCache.... =>>> useQueryClient, queryCache.invalidateQueries =>>>> queryClient.invalidateQueries

  • @timuser8642
    @timuser8642 Před 3 lety

    Максим делай видео уроки по русский