Skip to content

Commit

Permalink
Removing use of reserved symbol $ in components
Browse files Browse the repository at this point in the history
This is in anticipation of the release of Svelte 5
  • Loading branch information
EricFulton committed Dec 22, 2023
1 parent fe0b0c2 commit dcdc3db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ContentSwitcher/Switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
4 changes: 2 additions & 2 deletions src/ProgressIndicator/ProgressIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcdc3db

Please sign in to comment.