React Redux Full Course for Beginners | Redux Toolkit Complete Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

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

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

    A 50 second intro followed by 4 hours of code and instruction to help you learn about modern Redux with Redux Toolkit and RTK Query. I bookmarked all 7 chapters in the description. If you complete one lesson per day, you'll complete the full course in one week. Join my Discord server to discuss and ask questions: discord.gg/neKghyefqh

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

      Thank you, do you have any resources on Django React Authentication?

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

    Hiya! I'm the primary Redux maintainer and creator of Redux Toolkit. Thank you for putting this video together! In fact, I see that the source code is straight from the docs "Redux Essentials" tutorial I wrote... and that's GREAT! That means it's the same examples I want people to learn from! :)
    I've been thinking of doing a video series based on the "Essentials" tutorial myself at some point, and I still might. (Eventually! When I have time! HAH!)
    But until then, this appears to be a great quick intro to Redux Toolkit and React-Redux, the way we _want_ people to learn and use them today.
    So Dave, thank you for taking the time to make this video!

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

      Thank you, Mark. I noted I wanted "to give credit where credit is due" in the video series (playlist: th-cam.com/play/PL0Zuz27SZ-6M1J5I1w2-uZx36Qp6qhjKo.html) and also that I modified a few things for the tutorial like starting with a bulletin board example, connecting to the jsonplaceholder site and populating reactions it doesn't provide. I'm glad you like it, and thanks for providing a great foundation in the docs! 💯

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

      Hey Mark. When you do the tutorial please just don't do tutorials like every other YT channel. Please stress on the terms that you have used in the documentations. Also it would be great if you walkthrough your thought process while making the docs.

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

      Mark.. The set up for redux toolkit is more complex than Context Api.. Frameworks should be created to make things easier than the existing ones

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

      @@emmanueloluwafemi7236 Context and Redux are entirely different tools that solve different problems, so that's not a good comparison.
      Context is a Dependency Injection tool for a single value.
      Redux is a tool for predictable state management outside React.
      Context is already built into React, whereas Redux is a separate library.
      So yes, they _do_ have different setup, because they're not the same thing.

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

      @@markerikson3383 yes I know but they do the same function when you apply useReducer with useContext.. It's the same function with redux. It's faster and more efficient than redux toolkit.... Redux is to manage state and also to make the state global to other components. This is the same work with useContext and useReducer... I don't see any reason I should abandon context Api for redux toolkit yet. I'm sure you know what I mean... I'm a full stack dev

  • @SinanZen1981
    @SinanZen1981 10 หลายเดือนก่อน +1

    I watched your playlist on redux toolkit. They are great and no room for any confusion. Thank you for your help 🙏

  • @nguyenanh-vt4jv
    @nguyenanh-vt4jv 9 หลายเดือนก่อน +5

    you are actually a generous man beside teaching, you also foster me to read the document and find out the way to learn another stack by myself. Thank you Dave

  • @rjevangelista9769
    @rjevangelista9769 ปีที่แล้ว +6

    I paused the video just to tell you're an amazing instructor. I can't believe I watched the whole course for free! I'll definitely recommends your channel to my friends. The amount of time and effort you make this video, you're truly a godsend.

  • @dev-seremba
    @dev-seremba 2 ปีที่แล้ว +9

    Given that I am an hour away from completing your React course(it is really nice), which I take daily from 4:30 am to 7:00 am for a month now, this Redux tutorial will be another nice tutorial to solidify my React knowledge.

  • @17a.studio
    @17a.studio ปีที่แล้ว +1

    Thanks a lot

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

    57:11 sort by date
    1:09:50 createAsyncThunk
    1:29:00 ['array','apple','fruit'].every(Boolean)
    1:31:25 redux-toolkit add unwrap()
    2:55:00 RTK query -> isLoading, isSuccess, isError, error

  • @ibrahimal-nuaimi1005
    @ibrahimal-nuaimi1005 2 ปีที่แล้ว +23

    Dave you're a godsend, you take from your time and make these masterful videos to teach us how to code. Other teachers should be like you. If there's anyone who contributed a lot to this world's future by raising a lot of skilled coders, it'll be you, thanks a lot! ❤️🙏

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

    sir , I am Indian doing self study for web development, & you are the best resource that I found on internet for web dev.
    Thanku very much sir 🙏🙏🙏🙏🙏

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

    Well i simply wanted to learn Authentication in React.... and ended up watching Node 7 hours Course, React 9 Hours Course and right know learning Redux 4 hours course. Life can be surprising !!!
    I am so happy that I have opportunity to learn from well organized tutorials, and don't have to bother about outdated knowlage.

  • @Shiva-wc4de
    @Shiva-wc4de ปีที่แล้ว +1

    At 26:00, How come the function receives state as a parameter? how does redux knows that the state needs to be passed.
    Also, for the state, why we are getting the value of state by writing state.posts even though we are exporting reducers, not the actual value from the store.
    It's confusing...

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

    Thank you Dave, I can't believe you are putting such an amazing tutorial with simplicity for free on youtube. other creators make things complicated to show that they know something which is not true but only confuse learners.

  • @jacobburgo
    @jacobburgo 10 หลายเดือนก่อน +8

    For those of us in 2024, you may need this bit of additional code for part 3 to filter out the duplicate posts from the API. Not sure what happened, but I am getting 2-4 of each posts in my request and I copied exactly from the source code.
    let content
    if (postStatus === "loading") {
    content = "Loading..."
    } else if (postStatus === "succeeded") {
    const orderedPosts = posts
    .slice()
    .sort((a, b) => b.date.localeCompare(a.date))
    const preContent = orderedPosts.filter((val, i) => {
    if (i !== orderedPosts.length - 1) {
    return val.id !== orderedPosts[i + 1].id
    }
    return val
    })
    content = preContent.map((post) => (
    ))
    } else if (postStatus === "failed") {
    content = {error}
    }

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

      Thank you!

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

      You can also use Set to filter out the duplicated posts by ID, I dont know if this the better approach, Can someone explain why this duplicating is happening
      const uniquePosts = Array.from(new Set(posts.map((post) => post.id))).map(
      (id) => posts.find((post) => post.id === id)
      );
      let content;
      if (postStatus === "loading") {
      content = Loading...;
      } else if (postStatus === "succeeded") {
      const orderedPosts = uniquePosts
      .slice()
      .sort((a, b) => b.date.localeCompare(a.date));
      content = orderedPosts.map((post) => (

      ));
      } else if (postStatus === "failed") {
      content = {postError};
      }

    • @squidypop
      @squidypop 3 หลายเดือนก่อน

      @@atanassolakov3289 It seems like it is because we are using react.strictMode. In strict mode everything is rendered twice to help spot errors, but its really messing this project up. I'm not sure why Dave didn't have the same problem as us though as he is also using strict mode. I'm also not sure of the best solution.

    • @squidypop
      @squidypop 3 หลายเดือนก่อน

      @@atanassolakov3289 Ok I just changed state.posts.concat(loadedPosts) in the postsSlice file to state.posts = loadedPosts. That way when the second array of data is retrieved it will overwrite the first array rather than being added onto the end. I am fairly new to react but I'm pretty sure this is an acceptable solution.

    • @reclusedoggo3513
      @reclusedoggo3513 3 หลายเดือนก่อน +2

      Duplication is happening due to effects and components being rendered twice due to StrictMode, if you remove strict mode this vanishes..

  • @mkyawkhantwin
    @mkyawkhantwin 8 หลายเดือนก่อน

    With the first lesson i understand how the redux works and with the second lesson i understand how to implement it in a project Thank you for the great tutorial i will keep watching

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

    this course is really really good but i wont recommend to absolute beginners,because the guy explains things nicely but he kinda assumes that most of us already know some basic of react-redux and reduxtoolkit .This video was definitely good for me because already watched some tutorials before jumping onto this video .This video will definitely helps those guys who have some what knowledge of reduxtoolkit
    thanks a bunch and awesome tutorials🔥🔥🔥🔥🔥

  • @GabrielMartinez-ez9ue
    @GabrielMartinez-ez9ue 2 ปีที่แล้ว +2

    This channel brings the best content there is out there. Every time I need a specific content I come here to see if there is an explanation of it.

  • @electro1146
    @electro1146 6 หลายเดือนก่อน +1

    Man, you are doing God's work by putting out such accessible quality content and that too for free!

  • @Igris-xf3ol
    @Igris-xf3ol ปีที่แล้ว +3

    Dave, This tutorial is perfect for beginners and your explanation is good to get understanding. The topics you are covered are most asked for job interview. Thank you I have learnt redux with this video and I just need to contribute in projects.

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

    Wow, just finished this after i think 2 weeks cuz i was on and off. I now understand redux, redux thunk, rtk query and have a deeper understanding of react in general. Thank you very much.

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

    You are genius as well as kind-hearted man sir...that's why uploading very high quality vedios

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

    As a beginner in redux, I've got complete disorientated after the first lesson. The second lesson has too much information without explanation and I expect the rest of them to be the same. After all, I appreciate the time spent doing the video, but this guide is for more advanced than beginner people.

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

      I totally agree with that.

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

      💯 true!!

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

      I agree

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

      I thought i was way less than beginner 🥲🥲

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

      I would advise you to get more familiar with reducers (useReducer hook) before starting this tutorial. If you are familiar with reducers then it wouldn't be too difficult for you to follow the tutorial.

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

    watched this in Jan 2024, A great course. Thank you Dave.
    I am heading to zerotomastery Asap.

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

    One of the best coding tutorial I have every seen. Though I have already some past experience with React and Redux, the way you present and explain is superb and deepen my understanding. Thanks! :)

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

    Just finished it right now in 4 days and I was really needing to learn redux for an application that I am creating and in the of this I am really sure I came to the right place... Congrats Sir @Dave Gray

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

    When i become a decent web developer, my next mission will be to find this man and buy him a drink and a car. what a guy

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

    Thank you too much Dave, there isn't much tutorials on the internet about redux toolkit, I've got troubles learning redux toolkit with typescript, specially data fetching part, could you make tutorials on that topic, thanks again for your effort!

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

      Thank you, Adrian - this course shows various ways of fetching data, but it does not include Typescript. I'm getting enough requests that I may need to do one with TS in the future. 💯

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

      yes, typescript +1

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

    Same thing in Typescript and we have perfection. Thanks Dave!

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

      You're welcome and thank you for the request! 💯

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

    Your way of writing code is so elegant, I love it!

  • @bkarthini272
    @bkarthini272 18 วันที่ผ่านมา

    Your course is absolutely amazing 👏

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

    Best Redux course on the internet all that is missing is the using Redux with TypeScript part.

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

      The TS addition will make a good future video. Thanks! 💯

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

      This along with Codevolution one is a complete package

  • @Anime-vk6xq
    @Anime-vk6xq 3 หลายเดือนก่อน

    Great video I understood every detail you taught. Thank You

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

    Dave you are such an amazing teacher thank you for making this course available for us new devs for free i will recommand your channel for my friends

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

    FYI! There is an extension for the useState statement that you have to install and that is very helpful. ush
    I heard an advice, being a developer try to automate things as much as you can especially the repetitive tasks.

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

    I followed you Dave within entire tutorial. GJ!!! TY!!!💙💛

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

    Thanks man. I actually had no idea where to start with learning redux until this video.

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

    For anyone not able to get the username inside the PostAuthor component at 51:23, you might need to enter "userId: parseInt(userId)" inside of the postsSlice prepared statement.

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

    You have taught very well, thank you Sir!

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

    Good day Dave Gray, what a nice redux toolkits tutorial, but I have a comment on the way majority of you expert programmers do teach programming, this is something practical, it would be better if you have an application you want to clone, and then put it aside, work with the documentation, as you are teaching, lets know the reason why you are using particular hooks, I think by that, no body will come here and feel like "oh no am not gaining anything here", because as you are writing the codes without documentation makes it a little bit difficult, because I personally feel like that, can't talk about other people....... If you are writing the code with documentation, then everybody will flow, and know the reason why you are using a particular hooks

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

    WOW! Exactly what I needed, just on the right time! :D Thank you so much for such great content and dedication to share your knowledge! 👏

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

      You're welcome, Eduardo! 💯

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

      Same feeling 🥰🥰🥰🥰🥰 and thanks a lot Dave gray...

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

    My best tutor of all time, special thanks for this wonderful video.

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

    THANKS so much for you redux tutorials , been watching alot of videos on redux and even on Udemy and your course is just way better, thanks for helping me in my career.

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

    You know me! Liking the video before even starting to watch it because I know the content will be great as always

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

    Best ever tutorial on redux toolkit explanation is 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥. Thanks Dave for a such effort

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

    For those of us who struggled to find why posts are duplicating after Chapter 3 ( lesson 3) just remove the react's strict mode, it helped me cause it doesnt do the rerender i think :)

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

    at 17:47, we could have simply given and it would only take numbers in input. If you type any letters, the textarea won't show anything.
    Loving this course by the way.

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

      Thank you, Basuki! 🙏 Personal preference, but I do not like how the number inputs look with the arrows for up and down on the right when it has focus. You do mention a valid option though! Example: developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number

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

    Thanks for the course. But I would have really loved this course if you dive deeper and told us why you are writing some codes. Sometimes I dont even know what a line of code is doing. But watching this video and searching the codes I dont understand in the google helped me!

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

      Yes, I'm glad you searched. Combining this course with the official docs should help, too.

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

    Thank you very much for your kindness .... no one teach better than you with every step explanationn thank you very much

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

    Thank you Dave! You have no idea how helpful this series has been

  • @christobongende893
    @christobongende893 4 หลายเดือนก่อน

    thank you for making this course!
    it was great!

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

    the best React tutorial I've seen, best practices and clean architecture. I am impressed

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

    Thanks a lot Dave ! I appreciate it from heart. Watching your MERN full tuts and end up here , totally worth the time. In my opinion very few have the quality to explain things with no sweat and you are one of the best.

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

    Thanks Dave, you are an outstanding teacher, I highly recommend checking out the Redux tutorial. As someone who has experience with Redux, I found the tutorial to be an excellent resource that helped me deepen my understanding of the core concepts and best practices of Redux. One thing that I particularly liked about the tutorial is that it strikes a good balance between theory and practice. The explanations of the core Redux concepts (thorough) are excellent with examples to reinforce your learning and apply the concepts to real-world scenarios.

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

    Hey Dave, I came across this video after lots of videos and gotta say this is the best one I've watched.
    Thanks for such a wonderful video.

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

    Your delivery is so brilliant, thank you for this course!

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

    this tutorial took me 7 days to complete 😂, because I am practicing in parallel with the docs and chat gpt to answer to my stupid questions, so I can get the idea how the things works in deep and be confident in my knowledge

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

    Thank you Dave for providing high quality content. You're a wonderful instructor.

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

    hey dave i apprecite your work you are ding great can you explain me the 37:40 why did you this postAdded: {
    reducer(state,action){
    state.push(action.payload)
    },
    prepare(title,content){
    return{
    payload:{
    id : nanoid(),
    title,
    content
    }
    }
    }
    }
    istead of just
    addPost:(state,action){
    state.push(action.payload)
    }, is there any video that you recommed or any part of this video that you would tell me listen to?

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

    Hey Dave, thankyou for your tutorial. But I did not understand everything properly because there was lack of explanation for example what does useSelector do and all.
    It is just a healthy advice no criticism at all, but it was hard and had a feeling I might have to memorize everything .

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

    hi dave, 15:29 line 7th why are you using state.counter.count? state.count gives the value right?

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

      Good question! We have named the slice "counter" - refer to the name property of the counterSlice.js - and therefore, we access the count state in the function passed to the useSelector hook with state.counter.count 💯

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

      @@DaveGrayTeachesCode thanks dave

  • @mc-qf4bp
    @mc-qf4bp ปีที่แล้ว

    Unsure if this is an API change since the video has released, but at around 8 mins the increment, and decrement reducers should be updating state.value not state.count

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

      I think you misunderstand the concept. You can choose what to name the property you are updating. If all state could only be named value, you could only store one thing. In this example, I chose to name the property we are updating count. Follow my example and you will see that it works.

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

    Hey thank you for this tutorial. I like how you go over each line of the file. Also your explanation is perfect, especially at chapter 5.

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

    Thanks Dave for great lecture and excellent examples that explain step by step redux and redux toolkit from zero to hero

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

    Thank you for the free course, I got full help and I finished it

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

    Special thanks for that "Performance" section, pretty useful
    Cheers!

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

    Yo, Thanks for your efforts, I have a little question, There is any difference between using the redux toolkit with react vs next?

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

      Yes, Next.js is server-side so there are some considerations to be made.

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

    Great work. Nice that you combine all parts in one video)

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

    It's just the best Redux toolkit tutorial ever, awesome!!!!, thanks a lot.

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

    This will be a great resource for many developers during this year ... Great Dave 👏🏻

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

      Thank you! 🙏💯

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

      @@DaveGrayTeachesCode Hey Dave i know redux but i only need the way to use redux in class based components have you deal this

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

    Dave, you're a good teacher and thank you for your courses.
    I just wish you could reduce your speed a bit. Your courses are helping me a lot

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

    Dave i believe you are a master class level >>> happy to follow you

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

    Hello! Thank you so much for this lesson! This lesson (and others) helped me a lot on my actual school project! I'm studding to reorient professionally to frontend developper and your lessons helped a lot through this journey 🐣 Thank you so much for sharing all this knowledge ❤🙏

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

    Wow! Again, thank you for this! You're the best teacher I've ever had.

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

    1:19:16 my postExcerpt comp not showing up , check slice and comp and nothing is wrong , is anyone having this same problem?

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

    By far, the best redux tutorial. Thanks for sharing!

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

    thank you Dave. you have clarified a confusion that I'm faced with. thank you very much. please could work with this same project and teach us unit testing.

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

      You're welcome and thank you for the request! 💯

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

    this course covers all the things i need to know thanks dave . ☮ from India

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

    I needed to implement this on my projects, thank you for this wonderful intro to Redux.

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

    a new sub here. love to find this channel.

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

    thank you so much , ive been waiting for someone to expalin it in a good way and here you did , thank you Dave , its really so helpful

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

    first 20 minutes was all i need :)

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

    Thank you Dave, you are such an amazing tutor with good contents, you have really lifted us the jnr Devs in good ways, keep it up, Nigeria ....

  • @julian.castro18
    @julian.castro18 ปีที่แล้ว

    Thank you very much Dave! Your tutorials are amazing. At 2:05:43 instead of navigating to the home page, could we navigate to the SinglePostPage for the new post? I was going to try that but realized I had no way of getting the ID of the new post that the API should return.

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

      I think the id should be the userId we provide, i hope with that we can navigate ("posts/${userId}") . Since we provide the new id using nano id and it is temporarily stored in api

  • @zarinan.3774
    @zarinan.3774 2 ปีที่แล้ว +4

    Hello Dave, thank you so much for this tutorial! It is really what I need to finish my own project.
    I am in the end of the chapter 3 now and have the following problem - fetch is getting called twice which is followed by getting error for having elements with same key for each element. However, if I remove strict mode, fetch is getting once as should be. Is there anyway to do it with the strict mode on?

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

      Yes, React 18 introduced this issue. Strict Mode is only in use in dev mode as well so this is not an issue after creating a production build. That said, I have a video on how to handle the React 18 strict mode issue: th-cam.com/video/81faZzp18NM/w-d-xo.html

    • @zarinan.3774
      @zarinan.3774 2 ปีที่แล้ว

      @@DaveGrayTeachesCode I’ll check it, thank you!
      This issue definitely upgraded my debugging skills I have to say :)

    • @lonelyoldman-dy3kl
      @lonelyoldman-dy3kl ปีที่แล้ว

      ​@@DaveGrayTeachesCodethank you sir.

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

    Your channel is like a treasure for developer 🔥

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

    I just love the way you narrate and explain. Thanks a ton for all the wonderful content !!! If possible kindly do a series/comprehensive tutorial on 'styled components'. thanks again :)

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

      You're welcome, Chethan! 🙏 And thank you for the kind words and request!

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

    @6:14 what is the point of the export const counterSlice = {...} ?
    Couldn't we just const counterSlice = {...} w/o exporting?
    We are already exporting counterSlice.reducer and destructured actions from counterSlice.actions so why do we need to export the slice as well?

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

      Good question, Nelson! The export may not be necessary in this specific example, but it is a good habit to always use export with your slice. As the lessons progress, you will see that we can extend a slice to extra files.

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

    The advanced part was literally overwhelming it felt like I was being bombarded left and right with so much information that it was too much to take it all in! Wish you could explain and break down each line of code a little bit more in depth. But overall, this is a great tutorial, I think I learned so much up until the "advanced" section.

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

      Thanks! And I agree - this is complex stuff! You can review again - but I also recommend looking at the official docs linked in the description. More than one explanation can help.

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

      @@DaveGrayTeachesCode Thanks for the reply :) Not only I referred to documents but also tapped into ChatGPT's explanations which helped me quite a bit. Can I ask a question though? In addReaction query we followed a different method using onQueryStarted function, why didn't we just use invalidatesTags instead? I tried that and it worked just fine

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

      @@rnytpl The reactions were an example of optimistic updates.

  • @stepanmutsikivsky8987
    @stepanmutsikivsky8987 4 หลายเดือนก่อน

    I've created separate object "reactions", to not repeat myself, and there was no problem with wrong reactions list, in my case😁

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

    Dave
    Cmon
    Stop reading my mind
    😅😅😅😅😅😅
    This is amazing

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

    Great tutorial so far!
    When should we use the prepare callback in general... I'm having a little trouble understanding when that's necessary.

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

      Thank you, Nelson! If you provide a timestamp, I can address the specific part of the video. In general, the docs may help describe the prepare function use here: redux-toolkit.js.org/api/createAction#using-prepare-callbacks-to-customize-action-contents

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

    I can surely say that you are the best. Guru, my teacher

  • @jackjian3190
    @jackjian3190 8 หลายเดือนก่อน

    Such a great vid just like your others! My question is do we really have to keep the post list in the state? I saw all other vids all keep the long list in the state as well. From my prev experiences i only store data in db then on entity page we retrive the latest data from db for view or edit. Could you advise that? Thanks so much!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  8 หลายเดือนก่อน +1

      Different approaches do exist and can work. At the time this tutorial was created, it followed the official docs project.

    • @jackjian3190
      @jackjian3190 8 หลายเดือนก่อน

      Thank you sir for fast reply!

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

    Hi Dave. Thank you for this great lesson. We wrote the same codes repeatedly in the editposform and addpostform components. Can we turn these into hooks?

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

      If you can abstract it into something reusable for both, go for it! My answer to "can we" do x or y is always - give it a try! Absolutely the best way to learn! 💯

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

    Wow this is how some concept should be taught...... An awesome Hand-On experience... Thanks @DaveGray

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

    Thank you Dave!
    Waiting for Next js and Strapi full course

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

    Thanks for this tutorial Dave. You are a very important person.

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

    Thanks Dave, such a wonderful videos' is there any typescript version available ?

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

      Not right now, but I have read they are updating the official docs to show TS throughout. That will be good!

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

    awesome video on Redux! one of the best ive seen. killer content as always Dave.

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

    Awesome tutorial thanks!
    In case I missed it, can I stuff a class with array of images in to redux state? Say If I have gallery view that is pury memory based and no files on hdd. Would it be able to take dict with bytes/images?

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

      This is not something I have done myself, but I quickly found an article to help you out: medium.com/@gabriele.cimato/on-how-to-store-an-image-in-redux-d623bcc06ca7