All right, and once we have the interceptor setup in place now, it's the actions to the mix as well
as set up the reducer and finally complete our update user.
Now we will spend one more video on update users simply because eventually the log out functionality
as well, but that is coming up in the next video.
So now let's just start by setting up the actions and the actions just then in the app context.
Similarly to a register in login when we want to do is go with this batch more effectively.
We'll set up the learning curve and we'll get back our data correct.
So we'll get back the user, the location as well as the token, because remember, we set up one from
scratch.
After that, we have our dispatch.
So this is where I'll pass in the user location and token, and the time will be update user success.
And I also want to right away add it to the local storage since we're updating the user info, correct?
So we'll go here with user location and token.
So all three are added to the local storage.
And then if there is an error, we go here.
And also in the success one, we'll set up a successful alert.
And therefore, at the very end of the update user, we're going to go with clear alert.
More essentially will clear the alert and effectively these are going to be the functionalities we'll
set up in there at your show.
So when we start, we start uploading to true.
And then as far as the successful data notice, we're going to go here with his loading files and then
rest of the things that token user, user location, location, Rentschler.
And then at the very end, if we have the error.