1
00:00:01,230 --> 00:00:05,700
I'm still inside of my code cell component, taking a look at the U.S. fact function to remember inside

2
00:00:05,700 --> 00:00:07,530
of here we call crepe bundle twice.

3
00:00:07,920 --> 00:00:12,120
One was to handle the initial render of our component, and the second one was the bounce logic.

4
00:00:13,490 --> 00:00:17,390
Whenever we call Crepe Bundle, the first argument is going to Garcelle ID, the second is going to

5
00:00:17,390 --> 00:00:21,980
be the actual code we want to bundle now rather than attempting to bundle Selldorff content.

6
00:00:22,250 --> 00:00:23,390
We really want to bundle.

7
00:00:23,810 --> 00:00:26,410
You might have code just one very small thing.

8
00:00:26,420 --> 00:00:31,730
Remember, cumulative code is an array of strings, and whenever we call rebundle bundle, the expectation

9
00:00:31,730 --> 00:00:33,440
is we're going to provide one single string.

10
00:00:34,360 --> 00:00:39,760
So for both of our action creators, we're going to update that second argument to be imitative oad,

11
00:00:40,210 --> 00:00:45,070
we're going to join all those strings together with a new line character, the notice the board.

12
00:00:45,430 --> 00:00:52,630
And that's really just going to add in a kind of return or entered, same as if you return on your keyboard,

13
00:00:53,260 --> 00:00:55,810
it's going to join all those code snippets together.

14
00:00:56,470 --> 00:00:57,840
I'm going to update the second one as well.

15
00:01:02,510 --> 00:01:04,550
And also join it with a new character.

16
00:01:05,990 --> 00:01:10,220
And then finally, we need to make sure that we just update our dependency rate down here and we need

17
00:01:10,220 --> 00:01:14,990
to say that we want to attempt to rebundle this code any time cumulative code changes in some way.

18
00:01:16,190 --> 00:01:24,080
I'm going to also put in there a cumulative code, not join with Newline character.

19
00:01:25,310 --> 00:01:31,040
Now, at this point, time for all three references to cumulative code we are adding in or doing a joint

20
00:01:31,040 --> 00:01:35,090
operation with Newline character, so you might think, hey, why don't we just do this joint operation

21
00:01:35,270 --> 00:01:37,420
back up inside of our type selector?

22
00:01:37,790 --> 00:01:39,260
Well, there's a very good reason for that.

23
00:01:39,290 --> 00:01:40,370
You'll see in just a moment.

24
00:01:40,550 --> 00:01:43,610
Right now, just leave in these joint statements.

25
00:01:44,970 --> 00:01:47,310
All right, let's save this look back over.

26
00:01:49,150 --> 00:01:51,100
I'm going to do a quick refresh.

27
00:01:53,830 --> 00:01:59,380
And now inside my very first cell, I should be able to do something like a equals one.

28
00:02:01,910 --> 00:02:06,530
Go down to the second one and add a console log of a.

29
00:02:07,460 --> 00:02:11,570
I'm going to remove the Texel in the middle just to make sure I can see all the code, and now you'll

30
00:02:11,570 --> 00:02:14,830
notice that we do, in fact, end up with a console right there.

31
00:02:15,230 --> 00:02:20,240
So we are now sharing variables or essentially sharing functions or whatever else between these different

32
00:02:20,240 --> 00:02:20,930
code cells.

33
00:02:21,770 --> 00:02:26,570
If I make an update to come up here, I'm going to rebundle both cells.

34
00:02:27,020 --> 00:02:31,310
The second one is going to once again do a console log of the value of a and I see an updated console

35
00:02:31,310 --> 00:02:32,720
log right here of blah, blah, blah.

36
00:02:34,150 --> 00:02:38,710
All right, well, that's kind of it, believe it or not, at a very simple level, we've now got kind

37
00:02:38,710 --> 00:02:41,710
of cumulative code execution throughout all of our different code cells.

38
00:02:42,040 --> 00:02:46,210
Any time we change this code cell, all the independent code cells.

39
00:02:46,210 --> 00:02:50,450
So essentially everything beneath it are going to automatically update as well and execute.

40
00:02:50,890 --> 00:02:52,090
So this is pretty good.

41
00:02:53,750 --> 00:02:57,040
As usual, let's pause right here and continue on in just a moment.

