You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/composition-api-lifecycle-hooks.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# Lifecycle Hooks
1
+
# Gatilhos de Ciclo de Vida
2
2
3
-
> This guide assumes that you have already read the [Composition API Introduction](composition-api-introduction.html)and [Reactivity Fundamentals](reactivity-fundamentals.html). Read that first if you are new to Composition API.
3
+
> Este guia assume que você já leu a [Introdução a Composition API](composition-api-introduction.html)e [Fundamentos de Reatividade](reactivity-fundamentals.html). Leia estas páginas primeiro se você for novo no assunto de Composition API.
4
4
5
-
<VideoLessonhref="https://www.vuemastery.com/courses/vue-3-essentials/lifecycle-hooks"title="Learn about how Lifecycle Hooks work with Vue Mastery">Watch a free video about Lifecycle Hooks on Vue Mastery</VideoLesson>
5
+
<VideoLessonhref="https://www.vuemastery.com/courses/vue-3-essentials/lifecycle-hooks"title="Saiba mais sobre como os Gatilhos de Ciclo de Vida funcionam com o Vue Mastery">Assista a um vídeo grátis sobre Gatilhos de Ciclo de Vida no Vue Mastery</VideoLesson>
6
6
7
-
You can access a component's lifecycle hook by prefixing the lifecycle hook with "on".
7
+
Você pode acessar um gatilho de ciclo de vida de um componente prefixando o gatilho de ciclo de vida com "on".
8
8
9
-
The following table contains how the lifecycle hooks are invoked inside of[setup()](composition-api-setup.html):
9
+
A tabela a seguir contém como os gatilhos de ciclo de vida são chamados dentro de[setup()](composition-api-setup.html):
@@ -23,10 +23,10 @@ The following table contains how the lifecycle hooks are invoked inside of [setu
23
23
|`renderTriggered`|`onRenderTriggered`|
24
24
25
25
:::tip
26
-
Because `setup`is run around the `beforeCreate`and`created` lifecycle hooks, you do not need to explicitly define them. In other words, any code that would be written inside those hooks should be written directly in the `setup` function.
26
+
Visto que `setup`é executado em torno dos gatilhos de ciclo de vida `beforeCreate`e`created`, você não precisa defini-los explicitamente. Em outras palavras, qualquer código que seria escrito dentro desses gatilhos deve ser escrito diretamente na função `setup`.
27
27
:::
28
28
29
-
These functions accept a callback that will be executed when the hook is called by the component:
29
+
Essas funções aceitam um retorno de chamada que será executado quando o gatilho for chamado pelo componente:
0 commit comments