265. Using a Service for Http Requests
6:37
2 Mpitondra teny
2 Toko
147 segments
Mpitondra teny
Toko
-
0:01Toko 1: The code we have thus far is not bad and it does its job. 300s · Speaker 1
The code we have thus far is not bad and it does its job. And if our application were as simple as it is here, it would be perfectly fine. But in bigger applications, and maybe even in this one, we already have a quite big component with a …
-
5:02Toko 2: but I'll come back to this. 93s · Speaker 2
but I'll come back to this. Let's grab this logic here and move it into fetch posts in the posts service like that. Now let's remove is fetching and let's remove this loaded posts because we don't have these properties here and we don't rea…