Redux Toolkit Tutorial - 30 - Fetching Data

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 77

  • @felicitya.9077
    @felicitya.9077 ปีที่แล้ว +24

    I used to think redux was hard till i came across your channel. Basically learning everything here, react, redux, typeScript. love your teaching

  • @dipenchavda6988
    @dipenchavda6988 4 หลายเดือนก่อน +1

    Thank you very much for this playlist it cleared the basics of redux toolkit and redux for me :
    I knew redux before but these are my new learnings from this playlist :
    1. How to work with middlewears and what are middlewears
    2. How to make Async Actions with thunks
    3. One more fundamental thing I learnt is that when an action gets dispatched it is going to be checked with every reducer that we have and the once that don't have that action specified in them those reducers are going to ignored and the once that do have will have the capabilities of changing their part of the state when that action happens, which was greatly explained here by the example of getting an icecream for free when the user is buying a cake.
    these mainly the things that I have learnt from the playlist.
    thank you very much.

  • @shaharslan3372
    @shaharslan3372 2 ปีที่แล้ว +10

    Best playlist to learn redux toolkit . Absolutely loved the videos . Kudos to you !

  • @BeWarrior-dw4br
    @BeWarrior-dw4br 3 หลายเดือนก่อน +1

    It was a great series. Thanks a lot❤

  • @bhanuchowhan6312
    @bhanuchowhan6312 ปีที่แล้ว +2

    I completed you redux-toolkit series, it is amazing & provide great clarity. After a lot of tutorials on redux, your's the best!👌

  • @AndriusLau
    @AndriusLau 2 ปีที่แล้ว +67

    If someone has noticed that the app makes two fetch requests, it's because the react strict mode is added. Removing the strict mode solves this issue. But it's only in the dev environment.

    • @mihokeys283
      @mihokeys283 2 ปีที่แล้ว +3

      I was wondering why there are two requests and see your comment. Thank you.

    • @joshg6126
      @joshg6126 2 ปีที่แล้ว +1

      Thank You!

    • @ananthboudhmanabhan
      @ananthboudhmanabhan 2 ปีที่แล้ว +2

      Ok, now my question is why does the app makes two fetch requests in react strict mode?

    • @luu-quangnhat5538
      @luu-quangnhat5538 2 ปีที่แล้ว +9

      @@ananthboudhmanabhan StrictMode renders components twice (on dev but not production) in order to detect any problems with your code and warn you about them. Strict mode is only available in react 18 and in this video react version is 17

    • @Sch0LarY
      @Sch0LarY 2 ปีที่แล้ว +4

      @@ananthboudhmanabhan React expects your functions to be “pure”, e.g. with the same arguments, they have the same results. For this reason it expects to be able to call your hooks twice, and they should have the same result. Even if they have a side-effect like performing an API call, it should cause the same result twice.
      This is because outside of strict mode, React might run your hooks multiple times anyway, as it breaks the rendering phase up into pieces, and might pause or restart work. The best way to get around this is either to write your components with this in mind, or to explicitly check for when your hook has been ran.

  • @ahsanali580
    @ahsanali580 2 ปีที่แล้ว +2

    I feel lucky to see this playList as it covered everything very nicely and tutor has explained brilliantly.

  • @tanmaychhabra8721
    @tanmaychhabra8721 ปีที่แล้ว

    Started my career as a tester, I believed that learning react or learning anything related to reactjs would be a very tough job for me. But your channel made it very easy for me to understand the concepts related to react, redux and now reduxjs toolkit. Thanks a lot for helping me and everyone here who wants to understand these concepts.

  • @ganapan459
    @ganapan459 9 หลายเดือนก่อน +1

    thanks, you are one of the best teacher I have meet

  • @lulusaikou221
    @lulusaikou221 2 ปีที่แล้ว +1

    After finishing this playlist, I've learned a lot. Thank you!!!❤

  • @mansoob
    @mansoob 2 ปีที่แล้ว +3

    Great tutorial, you made it so simple to understand, it is amazing.

  • @jasono873
    @jasono873 ปีที่แล้ว

    Much love from here. Thank you ❤

  • @aieducators
    @aieducators 9 หลายเดือนก่อน

    you are my redux, react native life saver😍

  • @cheranmathivanan5552
    @cheranmathivanan5552 2 ปีที่แล้ว

    Thank you for this Redux-Toolkit playlist. ❤

  • @martinn1071
    @martinn1071 ปีที่แล้ว

    duuuude thanks so so so much you are a life- savior

  • @adityadesai7091
    @adityadesai7091 ปีที่แล้ว

    Best redux playlist

  • @fugas6258
    @fugas6258 ปีที่แล้ว

    Thank you for this greatest lesson! With you’r help i could understood React js requests on all 100%!!!😊

  • @antonarbus
    @antonarbus 2 ปีที่แล้ว +8

    why does redux have to be so complicated, is there any easier state manager?

    • @engkunasya
      @engkunasya ปีที่แล้ว +1

      use react custom hook, or react query

    • @Beskar181
      @Beskar181 ปีที่แล้ว +1

      Redux Toolkit, or Zustand but that is still very new

  • @gustavonunezortiz2316
    @gustavonunezortiz2316 2 ปีที่แล้ว

    Such a perfect tutorial, well done!

  • @pirateworld665
    @pirateworld665 ปีที่แล้ว

    Really get helped thanks for this 👍🏻

  • @vikashgupta3305
    @vikashgupta3305 11 หลายเดือนก่อน +1

    just WOWWWWW playlist....redux to reduxt-oolkit everything went into my brain like a story and such a good story that even if I create slice for different project I map the cake and icecream shop story with it.

  • @rumertovar
    @rumertovar 2 ปีที่แล้ว

    Thank you very much for such excellent content! ❤❤

  • @marjanarami4484
    @marjanarami4484 2 ปีที่แล้ว +1

    it couldn't be better than this. thank you for such a perfect tutorial

  • @ezzeldinmahmoud2174
    @ezzeldinmahmoud2174 ปีที่แล้ว

    Thanks a lot that tutorial help me complete my project 😊❤❤

  • @elfathstore1965
    @elfathstore1965 2 ปีที่แล้ว

    Thanks a lot because of this video has been fixed my code problem

  • @TheProDat
    @TheProDat 5 หลายเดือนก่อน

    what is that text colour theme you are using in vs code please/ Thank you for the awesome tutorial :)

  • @mishenthakshana3407
    @mishenthakshana3407 2 ปีที่แล้ว

    Thankyou for this tutorial

  • @walidaguib3944
    @walidaguib3944 ปีที่แล้ว

    7:26
    in my console the counter in redux dev tools still counting , why ?

  • @mohdshoyeb8760
    @mohdshoyeb8760 10 หลายเดือนก่อน

    Very nice play list

  • @صفوانمحمد-م6م
    @صفوانمحمد-م6م ปีที่แล้ว

    finally thank you Viswash

  • @joshuarodriguez9932
    @joshuarodriguez9932 ปีที่แล้ว

    Thanks a lot !!!!

  • @rogeliocodes894
    @rogeliocodes894 ปีที่แล้ว

    Great video!

  • @tahamanna3600
    @tahamanna3600 2 ปีที่แล้ว

    thank you, sir.

  • @zahidali6889
    @zahidali6889 2 ปีที่แล้ว +1

    What if UserView is class based component? How can we then use useSelector and useDispatch hooks?

  • @warzonehacks4915
    @warzonehacks4915 ปีที่แล้ว

    My question is: is it okay to put the database value (array or object or anything) as the initial state ?

  • @auronedgevicks7739
    @auronedgevicks7739 2 ปีที่แล้ว

    feedback: when you type a lot of code, let the user catch up for 10seconds before switching to the UI view

    • @lukaszsl
      @lukaszsl 2 ปีที่แล้ว +7

      feedback: you can use keyboard: "k" (start/ pause) "j" (10 seconds back) "l" ( 10 seconds ahead). Life is too short to create slow videos ;)

  • @tanveeransari989
    @tanveeransari989 ปีที่แล้ว

    what a journey?
    i just finished.

  • @AlexWisdom-g2w
    @AlexWisdom-g2w 10 หลายเดือนก่อน

    Hello, How to update or revalidate the data on it?

  • @abhinavmaurya1333
    @abhinavmaurya1333 2 ปีที่แล้ว

    Do i need to use the same name in use selector or it can be different (talking about the store)

  • @Error404Codes
    @Error404Codes 9 หลายเดือนก่อน

    hello sir how to handle api for update & delete data and also show toast make me challenging

  • @rohitkharche7562
    @rohitkharche7562 ปีที่แล้ว

    No RTK Query tutorial ?

  • @JC-fd8ho
    @JC-fd8ho 2 ปีที่แล้ว

    why do i need thunks and can i just not use them ?

  • @azadsarxanli
    @azadsarxanli 2 ปีที่แล้ว

    Can you make video about RTK-query, please?

  • @balajir391
    @balajir391 7 หลายเดือนก่อน

    I can’t able to see this user state in redux dev tool? Also while accessing user inside the component am getting error.
    Anyone facing this issue?

  • @thomasnarkiss6319
    @thomasnarkiss6319 ปีที่แล้ว

    Awesome

  • @joy_sam_raj
    @joy_sam_raj 2 ปีที่แล้ว

    Perfection..

  • @thomasnarkiss6319
    @thomasnarkiss6319 11 หลายเดือนก่อน

    No RTK-Query???
    Thanks anyway

  • @orofinadedamola4008
    @orofinadedamola4008 2 ปีที่แล้ว

    The request fails.."cannot read properties of undefined (reading 'get')"... Any solution to this??

    • @karanfulare7452
      @karanfulare7452 2 ปีที่แล้ว

      i'm to getting the same error

    • @karanfulare7452
      @karanfulare7452 2 ปีที่แล้ว

      check user , users and user

    • @ArjunTanwar900
      @ArjunTanwar900 2 ปีที่แล้ว +1

      re-write your callbacks properly. in all actions and fetchUser.pending fullfilled etc
      for eg: if you wrote
      state => state.count++
      change it to
      state => { state.count++ }
      similarly in fetchUsers.pending
      change your state => state.loading = true to
      state => {state.loading = true}
      if this doesnt fix it still that youre writing users instead of user or the other way around.

    • @karanfulare7452
      @karanfulare7452 2 ปีที่แล้ว

      @@ArjunTanwar900 I have sorted it , but can you help me with deleting a object from array , array is stored in state, I'm using rtk

  • @gmgm7619
    @gmgm7619 2 ปีที่แล้ว

    Make series on Zustand plz

  • @knowledgestar1081
    @knowledgestar1081 2 ปีที่แล้ว

    Could you update the next js playlist also

  • @parrou3
    @parrou3 2 ปีที่แล้ว

    I got this error Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. any help please?

  • @pranjalvora6667
    @pranjalvora6667 2 ปีที่แล้ว

    If someone is getting Error: url.parse is not a function then add url to your dependencies i.e. do npm install url or yarn add url.
    I think this error is related to Vite

  • @alejandroquinonescaicedo8
    @alejandroquinonescaicedo8 2 ปีที่แล้ว

    How without axios, i'm new in this

  • @ABUTAHER-wg7gz
    @ABUTAHER-wg7gz ปีที่แล้ว

    could not love toolkit, specially async process

  • @_Rohit_Kumaar
    @_Rohit_Kumaar 2 ปีที่แล้ว

    Wow

  • @ast453000
    @ast453000 2 ปีที่แล้ว

    It seems a bit too bad to display everything on one page. Isn't the whole point of redux to have one store for several pages? The functionality on the current page could be accomplished with useState and useEffect alone, no?

    • @piyushsinha8979
      @piyushsinha8979 2 ปีที่แล้ว +2

      True, but I guess he did that to focus on redux-toolkit & react-redux.. keeping things simple in react

  • @Mohit-bk4nu
    @Mohit-bk4nu ปีที่แล้ว

    Very weird accent but yeah, good tutorial

  • @NaveenKumar-wx8pu
    @NaveenKumar-wx8pu 2 ปีที่แล้ว

    Helped me a lottt

  • @Pareshbpatel
    @Pareshbpatel 9 วันที่ผ่านมา

    {2025-01-07}

  • @aynuayex
    @aynuayex ปีที่แล้ว

    Can you make video about RTK-query, please?