Fetch Support Request by ID in React with Redux
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

[00:00:01] All right. Now that we have our opponents set up our action for French support request by the beginning it's pretty easily going into our going into our to see our index on Jacen actions and replicating the what we see in French news letter by the. So pretty simple so we won't copy it but we need to make an action in. And we need to call this constant expert constant French support request by Pedi's equal to support a request by Pandie. Let's go ahead and say it was imported into our indexes index that U.S. support requests by ID. Let's go ahead and write the function now. Might as well just copy and paste right here Ted from fach says poor West by ID. Now let's replace this with fach support request by Id put it at the bottom. Cut put at the bottom. OK. Pretty simple stuff. No school to reduce or are indexed our support requests for future employment. Case fach request by the auto imports if it doesn't just copy not put up there. Now we want to do is find the find by the AP. So we need our action IPO to be equal to our ideas. Let's go back to where it started. Yes we are ready. Now let's go back to our support question that we're passing and ready for action up as you rightly say constant analysts say fetch. Or what did we call it a news letter. We call it fetishizing them. So let's do the same thing and we're not going to implement this functionality right here because well we know why. [00:02:14][133.0]
[00:02:14] Because the statement maybe we don't know actually. So the the reason we're not implementing this is because this is for the newsletter when we cut off the first item because of the way it has displayed on the screen. But the rest is going to be the same size just copy this and throw it into our research here. So first item is equal to state archive. We want to change that to support requests. As you can see here it's support requests and the more find it. All right let's not going to call it music right. It doesn't matter but it matters for clarity for readability. So we need to name this but this functionality worked on that. What's the name of this support request and we'll just leave that sort of put right here and return right here. OK. Now all we need to do is put this fetch item into our initial state. So fetch item is a blank object like we did in our newsletter and these are just so we have immediate access. Okay so that's all great. Now we should have access to it. Let's go ahead and head back to our edit or support request. And what we want to do here is see if we're getting states to say well we actually have yucks dev tools. Fortunately my is this one. So we should be able to see if we have support requests 3GS selected pending support requests 0 0 reason that's happening is because we're reloading on the side you never fetching it. [00:04:00][105.8]
[00:04:00] So let's make sure fetching all of her stuff okay if we go to her deal here we will have the items we want have the first time though but if we click on one it should populate that Steinman's data and click on that one and see what we got 0 keys for fetch. I know truly unfortunate. Let's go ahead and see what we can do to fix that. So let's go to our flow here we're fetching it. I'm going to go to fetch support request by Adium going to copy that. Make sure we make sure it's the same the method that we have in our index stodgier us and our actions and see so that support requests that support requests by deeds the same thing passing the idea in and then we're dispatching this. And the problem is we're not actually we should be good. Yeah that's good that's working. But let's see what's wrong. Okay. So that support request by ID going into our producer now support requests to be sure that she is honored by the state of Portland Quest's of Find support request. Heidi. OK so everything looks fine but it's clearly not. So let's cancel like the only AT&T even hitting this Reser let's say cancel long action pay load and see retrieving here say go back to our application and go back to support request. And then once one of these and it looks like we're not receiving anything in this counsel law we'll see Breman hitting this research by saying like This is a bargain and then we'll see even hitting Leeser when we get into working on it. So support. I'm going to click on one of these items and I'm not even hitting it which is an issue. [00:06:05][124.5]
[00:06:06] So let's go to our next G S and Lutts log in here and see Breman hitting the action canceled on long action. I'm long after the. Save now and see what's going down. Actually it's receiving Araby which means that's happening but some reason for some reason it's not going to fetch support request. Let's copy this and make sure it's the same and inquest's producer. And the reason it's not working is because this is that newsletter. It's not that request. So make sure you replace that and replace it up here or worse save it. Let's go back to our Tweedy's. Let's go to support request and then click on one of these links here. All right. This is a lot. That means it's hitting our producer because we have that in here but we're not getting our item back. Well maybe we are. We haven't checked here are reluctant to click on support requests that Shaitan 9 keys. We're getting an item back. Everything's chill. Let's go ahead and display that content in our actual component. I just tweeted the longer they're not registered and yet so the way we can display it into our actual component is something you'll learn in the next guy. So let's go ahead and commit because his dad is good at it let's say it coming. No say involvement. Fetch support requests by IP and by Hadebe action and producer. All right we'll see you in the next guy where we will get that item in populated form catching the. [00:06:06][0.0]
[363.3]