1
00:00:00,210 --> 00:00:08,670
All right, and once we have the interceptor setup in place now, it's the actions to the mix as well

2
00:00:08,670 --> 00:00:13,200
as set up the reducer and finally complete our update user.

3
00:00:13,530 --> 00:00:21,060
Now we will spend one more video on update users simply because eventually the log out functionality

4
00:00:21,060 --> 00:00:24,120
as well, but that is coming up in the next video.

5
00:00:24,960 --> 00:00:30,690
So now let's just start by setting up the actions and the actions just then in the app context.

6
00:00:31,290 --> 00:00:37,260
Similarly to a register in login when we want to do is go with this batch more effectively.

7
00:00:37,500 --> 00:00:41,010
We'll set up the learning curve and we'll get back our data correct.

8
00:00:41,010 --> 00:00:46,410
So we'll get back the user, the location as well as the token, because remember, we set up one from

9
00:00:46,410 --> 00:00:46,800
scratch.

10
00:00:47,280 --> 00:00:48,900
After that, we have our dispatch.

11
00:00:49,200 --> 00:00:55,410
So this is where I'll pass in the user location and token, and the time will be update user success.

12
00:00:55,860 --> 00:01:01,140
And I also want to right away add it to the local storage since we're updating the user info, correct?

13
00:01:01,440 --> 00:01:04,019
So we'll go here with user location and token.

14
00:01:04,319 --> 00:01:06,900
So all three are added to the local storage.

15
00:01:07,170 --> 00:01:10,500
And then if there is an error, we go here.

16
00:01:10,800 --> 00:01:14,970
And also in the success one, we'll set up a successful alert.

17
00:01:15,120 --> 00:01:19,530
And therefore, at the very end of the update user, we're going to go with clear alert.

18
00:01:19,800 --> 00:01:25,080
More essentially will clear the alert and effectively these are going to be the functionalities we'll

19
00:01:25,080 --> 00:01:26,520
set up in there at your show.

20
00:01:26,820 --> 00:01:29,040
So when we start, we start uploading to true.

21
00:01:29,340 --> 00:01:34,560
And then as far as the successful data notice, we're going to go here with his loading files and then

22
00:01:34,870 --> 00:01:39,080
rest of the things that token user, user location, location, Rentschler.

23
00:01:39,330 --> 00:01:42,120
And then at the very end, if we have the error.

