All language subtitles for 013 Verifying Reactivity_en

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
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

Original subtitles

In this lecture, we're going to learn how to verify if a variable is reactive, the composition API

is meant for very large components.

Somewhere along the line, it's possible to run into errors and error because a variable is no longer

reactive.

If we lose reactivity, our application may not behave as users may expect.

You provide two functions for verifying if a variable is reactive, they can be useful and debugging

an application.

Let's look at both of them.

Currently, I'm in the first project we were working with when learning about the composition API.

Specifically, I have the numbers just file opened.

The View package has two functions called is rough and is reactive, let's include both of them with

the important statement.

The is Reft function can be used for checking if a variable is reactive that was created with the rev

function, whereas the is reactive function will check if a variable is reactive that was created with

the reactive function.

We're going to update the import statement to include the reactive function because we'll need to create

a variable with this function for demonstration purposes.

Next, and he said function will quickly create an object called accounts.

This object will be created with the reactive function we imported.

It'll have two properties called checking and savings with random values.

The reason we're creating this object is because we want to be able to test the is reactive function,

our numbers look function didn't have any reactive variables.

After creating the accounts, Variable will perform a log to the console.

They long will output the return value by the IS Reft function will pass and the NUM variable to the

is Reft function.

Will create another log, but this time will log the return value by the is reactive function with the

accounts variable.

Both lungs should output true, since both variables are reactive.

We didn't change them, so they shouldn't have lost their reactivity.

Let's refresh the page in the browser with the console opened.

Both functions are returning true, this means our variables are reactive, the issue provides both

functions for testing f our code is reactive, it's useful for debugging and application.

If you were to override a reactive variable completely, you will lose that reactivity.

That may happen since we're not using the options API where we may accidentally lose reactivity.

Other than that, these two functions don't have much use.

That wraps it up for these two functions.

I'll see you in the next one.

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