From db810ab049bb75ad084107b3770d6cfa8b4171e5 Mon Sep 17 00:00:00 2001 From: Nick Wilcox Date: Mon, 10 Apr 2023 15:05:43 -0500 Subject: [PATCH] Remove extraneous call to loop function This extra call to the `loop` function isn't present in `app-b/src/lib/App.svelte`, so it should be removed from the text of the tutorial. --- content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md b/content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md index a996ca991..e4dfde99a 100644 --- a/content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md +++ b/content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md @@ -49,10 +49,8 @@ onMount(() => { paint(context, t); }); - loop(); - +++ return () => { cancelAnimationFrame(frame); };+++ }); -``` \ No newline at end of file +```