RTK Query in React (Complete Tutorial)

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 24

  • @danilomiguel3945
    @danilomiguel3945 Місяць тому +4

    Dude, I love your videos, I started to progress in programming after your classes, could you make a video explaining how to test components? Congratulations, you are doing a great job

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt Місяць тому

    Thanks compa, keep it up, your material is great!

  • @jacobwwarner
    @jacobwwarner Місяць тому +1

    Yeah. I think a query library integrated with Reduz would be helpful, but now i need to watch something else to get a better understanding of the differences between RTK Query and React Query.

  • @amirjamshidi5027
    @amirjamshidi5027 Місяць тому

    Thanks ❤

  • @irfansaeedkhan7242
    @irfansaeedkhan7242 Місяць тому +1

    good explanation but it would be much better if there is practical example used for it, like cart or todolist etc

  • @arijitroy9927
    @arijitroy9927 Місяць тому +3

    I started learning react last year. started with NextJs 13 with page router, RTK for api handling and state management, PrimeReact for ui lib (its pretty awesome), formik & yup for forms... I don't know should I go for vite, zustand, react query, react hook form, zod, shadcn way or not ??

    • @geenius6994
      @geenius6994 Місяць тому +5

      Those are completely different things.
      - Vite is essentially the way to create SPA apps in React, when you don't need Next & SSR.
      - Zustand is essentialy the same thing as redux, but much simpler and easier to use. I'd recommend it, but RTK is also very common and can handle pretty much any task.
      - React Query generally is better than RTK Query, cuz it's less complicated, but if you already use RTK, is would make sense to use RTK Query as well. So => RTK + RTK Query OR React Query/Zustand, based on what you like more or have more experience with,
      - Formik & Yup & RHK & Zod are also your personal choice, doesn't really matter, all solve the same problems.
      - Shadcdn is just a component library - if you like it and it's enough to solve a problem - go for it!

    • @arijitroy9927
      @arijitroy9927 Місяць тому

      @@geenius6994 thanks, I know & I have done works with vite, tanstack router with rtk & rtkq, also, does zustand & tanstack query has all the features of rtk & rtkq & yet simpler ? & is rhk simpler than formik ? (I dont want server side drama pages router for nextjs works great for me & easy to understand & use) cause I don't want anything complex in my codebase, React is already complex. now when react 19 will come we will be doing react once again in a different way. Suddenly PHP & Laravel seems far far better for creating web pages & web apps.

  • @shyamgupta9905
    @shyamgupta9905 Місяць тому +4

    How we can handle caching

  • @flashbyte
    @flashbyte Місяць тому +1

    Please make a detailed video on lucia-auth with next js app router

  • @yan1ist
    @yan1ist Місяць тому +3

    react query is so much easier to use than this..

  • @kinggrey2511
    @kinggrey2511 Місяць тому

    Small question for things like pagination will we pass the same way as limit and off you passed and then spread rhe data ? Also i have also seen useLazyGetAllMovies basics lazy in front of the same thing what does it do

    • @geenius6994
      @geenius6994 Місяць тому

      1) yes, but pagination usually becomes more complicated than that (if you have some additional logic).
      2) as far as i remember lazy query works the same as mutation, it gives you the function that you can manually trigger by calling it, while simple useQuery works immediately.

  • @ezetenduwilliams7322
    @ezetenduwilliams7322 Місяць тому

    As a developer who uses rtk query. All I can say is that there is no easy way of knowing rtk query

  • @md.thamidulhasansakib531
    @md.thamidulhasansakib531 3 дні тому

    his videos are good but i don't know type script so its hard to follow along

  • @elpresente4596
    @elpresente4596 Місяць тому

    🎉🎉🎉

  • @abdulmufeed6077
    @abdulmufeed6077 Місяць тому

  •  Місяць тому

    oh my,… i wish i knew this sooner. i was too scared of redux.

    •  Місяць тому

      so… the createPostMutation does not have to be awaited ?

  • @elabinnovations
    @elabinnovations Місяць тому

    Please upload Apollo graphql client video
    JWT auth

  • @ofekbensimhon2303
    @ofekbensimhon2303 Місяць тому +1

    damn I am actually first

  • @CyberGenius777
    @CyberGenius777 Місяць тому +3

    You actually said nothing about most valueable thing in Redux toolkit. About cache manipulating. And it's not about tags

    • @lamhung4899
      @lamhung4899 Місяць тому +2

      What do you expect from a UA-camr 😅?