WEBVTT

00:00.000 --> 00:06.360
Okay, so now we've reached the end of section five, and in this section we took a look at Redux and

00:06.360 --> 00:13.740
installed and implemented Redux functionality using things like the Redux toolkit, the React Redux

00:13.740 --> 00:17.610
bindings that allow us to connect our react application to Redux.

00:17.610 --> 00:25.260
And we've improved our data fetching by using RTK query and all of the functionality that comes along

00:25.260 --> 00:31.350
with that, things like caching, which pretty much instantly improves the performance perception of

00:31.350 --> 00:32.550
our application.

00:32.550 --> 00:37.770
And we also took a look at those excellent DevTools that are the Redux DevTools as well.

00:37.770 --> 00:39.720
So just some frequently asked questions.

00:39.750 --> 00:42.390
Well, one of them really do we need Redux.

00:42.390 --> 00:47.610
And that's one of the questions that I guess really we should ask ourselves before we go ahead implementing

00:47.610 --> 00:52.350
something like Redux and in our specific application.

00:52.440 --> 00:53.880
Do we need it?

00:54.030 --> 00:55.740
And I would say no, not really.

00:55.740 --> 01:02.070
We could use the react context which gives us centralized state management, if you like, in a react

01:02.070 --> 01:03.060
application.

01:03.060 --> 01:08.130
But Redux does give us more, and it does give us the centralized state management.

01:08.130 --> 01:10.680
It's much more scalable than react context.

01:10.680 --> 01:17.280
If our application grows, then scalability is something that we now have with the Redux system of state

01:17.280 --> 01:17.820
management.

01:17.820 --> 01:23.790
We get advanced tools like Redux middleware and RTK query and the DevTools as well.

01:23.790 --> 01:28.920
And as far as performance optimization goes, then Redux again wins that battle as well.

01:28.920 --> 01:34.440
So whilst we don't really have to have it for an application, I know exactly how large it's going to

01:34.440 --> 01:35.940
be and what it's going to do.

01:35.970 --> 01:40.620
If the question is, do we absolutely have to have it, I'd say no, but I really wanted to have it.

01:40.620 --> 01:43.260
So we have it is the answer to that.

01:43.260 --> 01:45.120
And it's a good thing to learn as well.

01:45.120 --> 01:47.280
And this is a training course after all.

01:47.310 --> 01:50.220
So that's my excuse for a little bit of overengineering.

01:50.400 --> 01:52.560
So anyway, now we have Redux installed.

01:52.560 --> 01:56.640
What we're going to take a look at next is error handling in our application.

01:56.640 --> 02:01.800
Something that we might not want to do, but is something that is important to do in our application.
