From dcdc3db46c5a3ae266eb113d3dcbd776b32650e9 Mon Sep 17 00:00:00 2001 From: Eric Fulton Date: Fri, 22 Dec 2023 13:32:28 -0800 Subject: [PATCH] Removing use of reserved symbol $ in components This is in anticipation of the release of Svelte 5 --- src/ContentSwitcher/Switch.svelte | 4 ++-- src/ProgressIndicator/ProgressIndicator.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ContentSwitcher/Switch.svelte b/src/ContentSwitcher/Switch.svelte index 40b52c71db..2e17205de7 100644 --- a/src/ContentSwitcher/Switch.svelte +++ b/src/ContentSwitcher/Switch.svelte @@ -23,8 +23,8 @@ ctx.add({ id, text, selected }); - const unsubscribe = ctx.currentId.subscribe(($) => { - selected = $ === id; + const unsubscribe = ctx.currentId.subscribe((currentIdVal) => { + selected = currentIdVal === id; }); afterUpdate(() => { diff --git a/src/ProgressIndicator/ProgressIndicator.svelte b/src/ProgressIndicator/ProgressIndicator.svelte index 688a797ad8..050562b1d7 100644 --- a/src/ProgressIndicator/ProgressIndicator.svelte +++ b/src/ProgressIndicator/ProgressIndicator.svelte @@ -16,8 +16,8 @@ const dispatch = createEventDispatcher(); const steps = writable([]); - const stepsById = derived(steps, ($) => - $.reduce((a, c) => ({ ...a, [c.id]: c }), {}) + const stepsById = derived(steps, (stepStore) => + stepStore.reduce((a, c) => ({ ...a, [c.id]: c }), {}) ); const preventChangeOnClickStore = writable(preventChangeOnClick);