Using Redux Thunk and Put Requests
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

[00:00:01] Back to the reactor building. No sky. We went over the same news for request function and now we talk up the point we're going ahead and when we tested it out with one that she's going to get the functionality in the button so we can do this. Finish up with our request request sign of things or support request. Feature except from a few minor things which styles. And then after that. So after this guy we're going to get into either permissions we're going straight to styles. Either way we'll do all those styles of permissions. That's what you'd expect after after he's this guy. So let's go ahead and get started here and say actually stop put in our room. You're out. We keep this and batiks here or else we can get our server a support request so you are supporting us and points they update status so we can get these items that was in the past in the 80s said Greggy. Crime rates this year using strong correlation. Now we want to see the higher as well because by the time you're going through this it's going to be an authorized readily acquire search going. Well I'll read it out for once so I'm going to pass in the present status. And this needs to be named says that it is on the market. So if we were to say the new status is because of its new status new status pending we can't just saying you status your homework because the back end is going to be looking for you can be working for us stass and I'll show you that right here. [00:01:50][108.7]
[00:01:52] See right here is looking for sties. We got the name status so we can do is doorkeepers status but we need this. So that works just as well. No I had heard that we need for the token so we can get it as an authorized user carrier's authorization. Mobile storage short get them and then of course we get nice. Now let's finally get the response back and do something with it then spots and in here we just dispatched Phetchaburi so we can get the new items. We can also like the response we know even OK so that is good. Now when you call so let's go ahead Chris for US side here in the target here after the. And let's just do this let's just call it change China's icon but we're going to put it fossil Maicon in here eventually instead of just tax. But again we're trying to get functionality down not styles OK on quick as equal to in brackets here with very narrow function loops and less in here let's just say this stuff props Don. And then when we named it which is saying and support request status I'm sure campiness go right here. And then Friday we want to say this stuff crops start under scrag you to get a view of the number of Permian viewing we're entering over and then being precise we want to display the stats but what we don't have any size obviously all we know is the current size. So we can say is this the process that is passing the current status right. [00:03:54][122.3]
[00:03:56] So then in here we don't want to just pass in the current status because it won't change. So what we have to do is just make a really simple switch and determine what we want it to be like if it's pending if a status was to switch. So to get to a switch you can either pay the same tax for individuals to guardedness switch entry on the second one if you going to write that just google switch statement and JavaScript real quick we're just kind of looking and copy you don't see us which contains it's just a key there and then it contains each case breaks until we put a brake on on the Volkswagen there because we already understand it anyway. So let's say Nice case and then we want to go for status. So you are status of the current item is ending we want to switch in progress Stassi will do in progress. Now if the case is in progress and we actually do want to hear rigs here because if we don't go through all these cases and just switch it all away to my computer every summer she really breaks up your settings. Now say OK for any progress we want the new site has to be completed or complete now for make sure there's a cooling here. Now we need injuries in either case. Okay that's complete. We want them to have the humility to change it back to Andy I guess and that's all we need to do is bring these breaks here and we're good to go now it's going to say it's going to be status pending were in progress in progress we complete pending. Okay. And then I'll pass it with our request for me. [00:05:54][118.3]
[00:05:54] That is what we're going to use newstands to get our value and if we were to just name the status it wouldn't work because this premise seems nice. So we have to kind of give us unique. So it doesn't collide with any confliction. So he comes with. So go ahead and see if this works let's say that the browser and let's test it out. Okay so let's choose a specific one we want to look at your be different. So just more just look at a specific one you want with a very unique set of all. So I would not have won a case something had changed that is fun and nothing happened. And that's because we haven't connected our application up to relax or getting our own actions yet. So we used redux for asylum so we really what we by just doing. We always do the same for CONNECT THE ACT redux. Give us access to our connect at the bottom. Let's just. All right. And we also need access to our actions so import star as actions from that are flashed out of such actions. And now that connected down here going to cut out support Seiter and connect you know from our city proper since we don't need any in here that we want to question our actions. And finally binded you are supported Quartzsite. Okay that should give us access. Go ahead. She was asked to save and you support equal status here. Save it and see if we can access it again. I'm going to know which one I'm looking at when we go online and change status. OK. [00:07:41][106.6]
[00:07:42] Now I didn't change your network the constancy prisoner there's nowhere which means it's probably not researching our data. So let's go ahead and click on the three year time. This was in progress and it's not there. So basically what I think is happening is it's probably changing your status but it's not it's not on your page. But I also notice that there is no OK's just taking a minute to do that. You let's see I'm going to look back in the application and see what's going on in this process. It looks like we're in the air on Rabee here I'm seeing this across the Ukrainian side of this door underscoring its nature. That's right. I want to go back and check it out. OK. Now I'm getting it change on the one with a lot of cages and it looks like it disappeared. We got a request down here. It's no longer. It's no longer in the heart of any someone clicked in progress. The first one in progress seats that wraps up are changing the status of a request piece of functionality and was put on the request somehow. We are pretty much all that functionality and here we have the ability that you have the ability to add new ones. And we have the ability to swap tweenies and change their statuses. So that's really awesome and looks like we're good enough for now. The only thing we really need to do is adding an image attachment you believe that I did and you mentioned seem with on the same when news requests or news requests news fodder utilize. [00:09:31][109.1]
[00:09:32] But anyway that's all we need to do. Now let's hop into the next guy where we will get started on hairstyles and then we plant our permissions after line between users and not so we cannot say who can do what. We don't want the user writing requests or newsletters. So let's go ahead and hop into the styles in the next. How many guys that takes. And then we will open the permissions and then we will fix all of our little bugs that we have remaining such as the images and we'll polish our application at last. So get ready to get get into a ton of styles. What's in our code so good stats good and good command implemented status change button on request support quest item right. Catching the next guy where like I said 500000 times will get into the styles. [00:09:32][0.0]
[565.0]