All language subtitles for 6. useAuth

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,510 --> 00:00:05,310 Hi there, welcome back in the annual lecture in the previous one, and they have talked about the composition 2 00:00:05,310 --> 00:00:11,760 and we have created for the composition of functional use, register in this lecture will continue with 3 00:00:11,760 --> 00:00:14,600 the composition and it will create rather more functional. 4 00:00:15,660 --> 00:00:16,410 OK, let's start. 5 00:00:16,410 --> 00:00:19,800 Let's go to register Dot View and as you can see, there it is there. 6 00:00:19,800 --> 00:00:26,440 A composition and function is not that useful because we are using register only in this page in registered 7 00:00:26,580 --> 00:00:26,880 view. 8 00:00:27,540 --> 00:00:33,150 So let's try to create a compositional function that will expose some state we can also use in other 9 00:00:33,150 --> 00:00:33,660 pages. 10 00:00:34,750 --> 00:00:37,720 We will start with our consulate property, as we have in the register. 11 00:00:37,750 --> 00:00:42,760 You have your error and its processing, but of this consulate property is going to be separated into 12 00:00:42,760 --> 00:00:49,700 the composition function and we can use them also in other pages because any processing we can also 13 00:00:49,820 --> 00:00:55,120 use, for example, in the log in page, you will change the structure of our state, but I will talk 14 00:00:55,120 --> 00:00:56,110 about this later. 15 00:00:57,040 --> 00:01:01,180 OK, so there will be refactoring a little bit differently light there for now. 16 00:01:01,360 --> 00:01:04,360 Just create a composition function of these computer properties. 17 00:01:05,410 --> 00:01:06,510 OK, so how can we be doing that? 18 00:01:06,510 --> 00:01:10,990 We can go to our composition a folder and it will create here in your composition of function, the 19 00:01:10,990 --> 00:01:15,030 call to use out right click here and a composition folder. 20 00:01:15,040 --> 00:01:15,490 New file. 21 00:01:15,490 --> 00:01:21,640 It's going to use out dodges and simply let's copy everything from user registered to use of. 22 00:01:22,900 --> 00:01:24,570 OK, we'll of course, change your naming here. 23 00:01:24,580 --> 00:01:26,170 We'll call it the use of. 24 00:01:27,990 --> 00:01:34,320 OK, we will get her story, but from story, I will access the state so we can visit these contest 25 00:01:34,830 --> 00:01:40,720 states or the state, or you can see the structure I state here and access this simply from a story 26 00:01:40,720 --> 00:01:41,880 or simply a one liner. 27 00:01:42,140 --> 00:01:46,990 You will on the front line right head state and it will distract you from a story and this will catch 28 00:01:46,990 --> 00:01:47,100 you. 29 00:01:47,100 --> 00:01:49,500 You all are of you state just like this. 30 00:01:50,400 --> 00:01:53,970 OK, this is what gets me excited, but I would like to expose computer properties here. 31 00:01:54,270 --> 00:02:00,360 They cannot be the same approach as we have in our in our components because in our in our components, 32 00:02:00,360 --> 00:02:06,480 we can simply just specify computer computer properly, and this will give me access to compute it in 33 00:02:06,480 --> 00:02:07,840 our composition function. 34 00:02:07,860 --> 00:02:09,390 They need to approach it differently. 35 00:02:10,080 --> 00:02:14,190 Generally, all of these things like a war, chest, computer properties and so on, you have access 36 00:02:14,190 --> 00:02:16,130 to you have access in your component. 37 00:02:16,140 --> 00:02:22,140 You have also access in your composition function, but you need to explicitly import this functionality. 38 00:02:23,250 --> 00:02:27,540 So then I want to work here with a with a computer properties, I need to import them. 39 00:02:28,050 --> 00:02:33,940 So your browser import Golay brackets and it will import your computer that from you. 40 00:02:34,110 --> 00:02:34,590 And that's it. 41 00:02:36,060 --> 00:02:41,740 Now I have access to computer properties and I can create are two comparable properties at all and is 42 00:02:41,760 --> 00:02:49,200 processing so that your concert at our lesson here compare that and to the computer developed, provide 43 00:02:49,200 --> 00:02:52,590 a callback function that will return your state of error. 44 00:02:53,610 --> 00:02:57,270 OK, so now it's time to access the state from behind from your store. 45 00:02:57,330 --> 00:03:00,840 OK, let's accept their state on the stadium will access your module. 46 00:03:01,200 --> 00:03:03,470 We have a user module on user module. 47 00:03:03,480 --> 00:03:08,040 They have a register property and on the register we have finally error like this. 48 00:03:09,600 --> 00:03:17,110 OK, this will get the error of a copy and paste it on there and the next little bit is processing again, 49 00:03:17,130 --> 00:03:21,570 communal property that is seeing the register Dot is processing. 50 00:03:23,460 --> 00:03:30,570 OK, and then simply, we can return them, we can return here earlier and is processing, and that's 51 00:03:30,570 --> 00:03:31,050 going to be. 52 00:03:32,150 --> 00:03:37,130 Navigon can go to our use register to register and register to vote. 53 00:03:37,160 --> 00:03:49,040 We can import the areas out import use out from dot dot slash composition, slash use out and then in 54 00:03:49,040 --> 00:03:53,430 our youth in our setup function, we can on to stage, but be careful. 55 00:03:53,630 --> 00:03:56,630 We are already returning user registers to combine it together. 56 00:03:57,440 --> 00:04:02,870 You can wrap it in the curly brackets like this and you can this structure of the properties of a use 57 00:04:02,880 --> 00:04:09,890 register their returned and you can write her comma and you can also get everything from a use out like 58 00:04:09,890 --> 00:04:10,160 this. 59 00:04:12,070 --> 00:04:17,020 OK, and we'll get you access to this to compare properly, so this way you can remove that computer 60 00:04:17,020 --> 00:04:17,470 from here. 61 00:04:17,860 --> 00:04:18,940 Simply remove them here. 62 00:04:19,270 --> 00:04:25,000 That is where you need to also remove that important state because we are using here in upstate as well. 63 00:04:26,700 --> 00:04:30,420 Now you can save it, and we'll have access to everything, we will have access to registries processing 64 00:04:30,420 --> 00:04:31,240 and all these things. 65 00:04:31,260 --> 00:04:33,810 But now, thanks to the composition of functions. 66 00:04:35,640 --> 00:04:40,840 OK, let's say let's try it out with let's go to browser refresh here on registered page and yeah, 67 00:04:40,870 --> 00:04:43,600 let's to sign up, sign up here we are blocking it. 68 00:04:43,620 --> 00:04:44,850 Yeah, it's working. 69 00:04:44,850 --> 00:04:46,710 You can see you are blocking the access to is. 70 00:04:48,260 --> 00:04:48,920 All right. 71 00:04:49,070 --> 00:04:50,900 But our effects of these working just great. 72 00:04:53,880 --> 00:04:56,520 OK, you can try to also register, of course, successfully. 73 00:04:56,690 --> 00:04:58,110 Yeah, if you want, we can do it. 74 00:04:58,140 --> 00:04:59,400 I don't have how many tests the emails. 75 00:04:59,400 --> 00:05:01,260 I'll create a table by the test. 76 00:05:01,530 --> 00:05:06,210 Then at Gmail dot com username test, then password test. 77 00:05:06,210 --> 00:05:09,120 Does the password test the sign up? 78 00:05:10,520 --> 00:05:12,740 And I should be registered or. 79 00:05:16,240 --> 00:05:16,530 OK. 80 00:05:16,800 --> 00:05:21,430 Actually, there are no veterans there, so you can verify it into your fighter base if you want to, 81 00:05:21,430 --> 00:05:24,850 I will go now to the fighter base to check it out with the pilots to use our 10. 82 00:05:27,480 --> 00:05:28,800 Case, Firebase. 83 00:05:28,860 --> 00:05:30,570 I'll fast forward to my console. 84 00:05:31,840 --> 00:05:34,300 And here it is, Test 10 user. 85 00:05:34,720 --> 00:05:42,130 OK, so everything is or a kink we can, uh, display the issues when we have them, we can block the 86 00:05:42,130 --> 00:05:46,750 buttons on the on a button that we that use for authentication. 87 00:05:46,960 --> 00:05:52,340 And all of this is thanks to the computer properties that we have created now in our composition function. 88 00:05:53,350 --> 00:05:54,520 Let's stop it here. 89 00:05:54,550 --> 00:05:58,360 Let's continue in the next lecture, we'll be also talking more about the composition of functions, 90 00:05:58,360 --> 00:06:01,330 and it'll be handling a lot of user experience improvements here. 91 00:06:01,570 --> 00:06:05,080 So guys, that's going to be and I hope to see you in the next lecture, Oculus. 9164

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.