From 397f07f889a7e7e7d5f25ed2d40d92567c622b56 Mon Sep 17 00:00:00 2001 From: Tarik Mujezinovic <160589956+DevTare3@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:19:01 +0100 Subject: [PATCH] Update README.md Seems like the function was missing brackets for ((value) on line 34 and 54 --- .../01-svelte/08-stores/02-auto-subscriptions/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/tutorial/01-svelte/08-stores/02-auto-subscriptions/README.md b/content/tutorial/01-svelte/08-stores/02-auto-subscriptions/README.md index 2ac0aa131..7ab3b14f2 100644 --- a/content/tutorial/01-svelte/08-stores/02-auto-subscriptions/README.md +++ b/content/tutorial/01-svelte/08-stores/02-auto-subscriptions/README.md @@ -28,7 +28,7 @@ You now declared `unsubscribe`, but it still needs to be called, for example thr let count_value; - const unsubscribe = count.subscribe(value => { + const unsubscribe = count.subscribe((value) => { count_value = value; }); @@ -51,7 +51,7 @@ It starts to get a bit boilerplatey though, especially if your component subscri ---let count_value;--- - ---const unsubscribe = count.subscribe(value => { + ---const unsubscribe = count.subscribe((value) => { count_value = value; });---