Removing use of reserved symbol $ in components

This is in anticipation of the release of Svelte 5
This commit is contained in:
Eric Fulton 2023-12-22 13:32:28 -08:00
commit dcdc3db46c
2 changed files with 4 additions and 4 deletions

View file

@ -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(() => {

View file

@ -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);