1
00:00:00,330 --> 00:00:01,110
Not bad, not bad.

2
00:00:01,320 --> 00:00:03,480
We have the server functionality in place.

3
00:00:03,930 --> 00:00:09,570
So now let's start dealing with our get all jobs functionality on the frontend.

4
00:00:10,020 --> 00:00:16,620
And the first thing that we want to do is going to be extremely, extremely straightforward in the initial

5
00:00:16,620 --> 00:00:25,230
state in the context of these properties, jobs, which is going to be in A. In the beginning that total

6
00:00:25,230 --> 00:00:32,700
jobs, which by default is going to be one that it will add a number of pages which in the beginning

7
00:00:32,700 --> 00:00:35,050
are going to have a default value will be one.

8
00:00:35,490 --> 00:00:40,680
And you can already probably put two and two together where since you are getting these values from

9
00:00:40,680 --> 00:00:41,280
the server.

10
00:00:41,610 --> 00:00:44,190
Once we make our request, we'll update them.

11
00:00:44,490 --> 00:00:47,910
Basically, whatever jobs I'm getting, I provide these values.

12
00:00:48,210 --> 00:00:51,930
And also since eventually we will have pagination.

13
00:00:52,350 --> 00:00:58,530
And since normally you start by generating from the first page, essentially you get the data for the

14
00:00:58,530 --> 00:00:59,040
first page.

15
00:00:59,190 --> 00:00:59,590
Yes.

16
00:00:59,610 --> 00:01:02,580
Will Heart Code page is equal to one.

17
00:01:02,610 --> 00:01:06,300
Again, this problem is not going to make much sense at the moment.

18
00:01:07,220 --> 00:01:11,480
But don't worry, if you have been watching my two daughters, you know that I always come back to things

19
00:01:11,480 --> 00:01:17,000
anyway, so this is going to be the case where, yes, we'll set up this page just because it's easier

20
00:01:17,450 --> 00:01:24,350
to set up all our functionality this way, since I don't have to again run back and start setting up

21
00:01:24,350 --> 00:01:30,440
everything as far as this one property all over my application and for time being, we'll just go with

22
00:01:30,710 --> 00:01:32,210
page equals to one.

23
00:01:32,570 --> 00:01:37,580
And if this is a little bit confusing to worry, once we start by generating, I will come back to this

24
00:01:37,580 --> 00:01:37,790
one.

25
00:01:38,120 --> 00:01:38,810
So let's do that.

26
00:01:39,260 --> 00:01:42,110
We're going to go right now to the client online.

27
00:01:42,140 --> 00:01:50,300
More specifically, I'm looking for the context app context one, and let's scroll up and what we're

28
00:01:50,300 --> 00:01:51,230
looking for here.

29
00:01:51,560 --> 00:01:52,010
Hmm.

30
00:01:52,270 --> 00:01:52,850
OK, let's see.

31
00:01:52,850 --> 00:01:56,930
Let's say let's see in the initial state right after, depending one.

32
00:01:57,500 --> 00:01:58,400
Here's what I want to do.

33
00:01:58,730 --> 00:02:03,620
I want to go with my jobs, like I said, equals to an empty array.

34
00:02:03,920 --> 00:02:10,009
Typekit default setup for now, and we want to go with total jobs, which is going to be equal to zero.

35
00:02:10,370 --> 00:02:15,380
So that's the default rather than let's go with number of pages.

36
00:02:16,420 --> 00:02:18,190
That's going to be equal to one as well.

37
00:02:18,550 --> 00:02:23,140
And then page by default will all be getting the page number one.

38
00:02:23,740 --> 00:02:29,440
And with this in place now, we can start setting them and get all jobs request.

