1 00:00:00,390 --> 00:00:08,250 And similar to why we moved the actions of the U.S., I also want to remove the producer because there's 2 00:00:08,250 --> 00:00:11,520 going to be way more functionality to what we have right now. 3 00:00:11,730 --> 00:00:15,090 And you really don't want to clog up your jars. 4 00:00:15,330 --> 00:00:22,950 So that way we have more space and it's more understandable of what is what the functionality will be 5 00:00:22,950 --> 00:00:24,360 in reducers file. 6 00:00:24,540 --> 00:00:29,680 And then we're just going to import reducer and set it up once we set up the store. 7 00:00:30,000 --> 00:00:34,170 So again, sidebar open, then let's look for the source. 8 00:00:34,440 --> 00:00:38,400 And then in the source, let's create our producer. 9 00:00:38,700 --> 00:00:45,060 Just keep in mind later, as we're adding more producers, we're going to set this up in a separate 10 00:00:45,060 --> 00:00:45,990 folder altogether. 11 00:00:46,290 --> 00:00:49,950 But for the time being, we have reduced our Dubcek's. 12 00:00:50,310 --> 00:00:52,740 So I'm going to head back to Apgar's. 13 00:00:52,980 --> 00:00:55,770 So let me make a proper selection. 14 00:00:56,920 --> 00:00:57,580 Cut it out. 15 00:00:57,880 --> 00:01:03,590 I don't think I need any more the comment I'm in reducer, I'm just going to copy and paste. 16 00:01:03,910 --> 00:01:05,560 Now, I do need to export it. 17 00:01:05,950 --> 00:01:08,440 And I think I'm just going to go with default export. 18 00:01:08,440 --> 00:01:12,970 So I export default and I do have my producer. 19 00:01:13,330 --> 00:01:18,460 Let me say right now, there's going to be a problem, though, because notice how we're referencing 20 00:01:18,460 --> 00:01:19,590 right now our verbals. 21 00:01:19,900 --> 00:01:21,750 We're referencing decrease and increase. 22 00:01:22,120 --> 00:01:25,030 So this is going to be the case where we're going to have to change. 23 00:01:25,480 --> 00:01:31,630 So we're still despatching in the objets and we're going to do that for maybe two videos once we set 24 00:01:31,630 --> 00:01:33,610 up, of course, our functionality and application. 25 00:01:33,880 --> 00:01:36,010 That's not how we're going to dispatch our actions. 26 00:01:36,310 --> 00:01:42,160 But since at the moment we have our dispatchers and things that we want to show that our producer will 27 00:01:42,160 --> 00:01:48,670 still work, even though it's going to be in a separate file, I'm going to keep my imports here, but 28 00:01:48,970 --> 00:01:54,490 we would want to also copy and paste and paste it in the register just as well. 29 00:01:54,760 --> 00:01:57,310 Otherwise, again, we're going to have a big, fat error. 30 00:01:57,640 --> 00:02:03,130 And then where I have the address now, I would want to import my producer as well. 31 00:02:03,370 --> 00:02:08,590 So let me close the sidebar and then right after the elections, I'm going to go import. 32 00:02:08,810 --> 00:02:14,400 Now, it is a default export so I can call this what I would want want, but I'm going to go with a 33 00:02:14,410 --> 00:02:15,220 reducer. 34 00:02:15,490 --> 00:02:22,570 And then from then, of course, we're looking for my producer file and then I don't need to change 35 00:02:22,570 --> 00:02:23,020 anything. 36 00:02:23,140 --> 00:02:25,330 I'm already referencing the function. 37 00:02:25,570 --> 00:02:31,240 And once we save it, since we don't get any errors, that means that we successfully moved our producer 38 00:02:31,240 --> 00:02:33,580 function to a separate file. 39 00:02:33,940 --> 00:02:38,080 And you can clearly see how we freed up the space in the objets. 40 00:02:38,290 --> 00:02:44,950 So now our functionality is going to be another user, just our actions are going to be in the actions 41 00:02:44,950 --> 00:02:47,110 jazz and then in the objets. 42 00:02:47,320 --> 00:02:54,340 We're just going to set up the store and initialize it using our initial store and the producer.