From 7b4600e4375bddf97f544c27d7adccdcfe6fccb7 Mon Sep 17 00:00:00 2001 From: Crafted Systems <26137287+craftedsystems@users.noreply.github.com> Date: Thu, 11 Jul 2019 15:10:31 +0200 Subject: [PATCH] Replace `onMount` with `onDestroy` in _text.md_ --- site/content/tutorial/07-lifecycle/01-onmount/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/07-lifecycle/01-onmount/text.md b/site/content/tutorial/07-lifecycle/01-onmount/text.md index 54b385e889..8bdc3d965b 100644 --- a/site/content/tutorial/07-lifecycle/01-onmount/text.md +++ b/site/content/tutorial/07-lifecycle/01-onmount/text.md @@ -25,4 +25,4 @@ We'll add an `onMount` handler that loads some data over the network: Lifecycle functions must be called while the component is initialising so that the callback is bound to the component instance — not (say) in a `setTimeout`. -If the `onMount` callback returns a function, that function will be called when the component is destroyed. \ No newline at end of file +If the `onDestroy` callback returns a function, that function will be called when the component is destroyed.