Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix `HomeSidebar` repositories navigation
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago

TIL that svelte5 reactivity doesn’t apply to destructured renamed variables.

By renaming repos: initialRepos and then using initialRepos in a $state rune, changes to the repos prop will not be taken into account.

checkcheck-unit-testcheck-e2e

πŸ‘‰ Workflow runs πŸ‘‰ Branch on GitHub

1 file changed +1 -8 a3507770 β†’ acd06d00
modified src/views/home/Repos.svelte
@@ -27,17 +27,10 @@
  }

  /* eslint-disable prefer-const */
-
  let {
-
    config,
-
    repos: initialRepos,
-
    notificationCount,
-
    repoCount,
-
    activeTab,
-
  }: Props =
+
  let { config, repos, notificationCount, repoCount, activeTab }: Props =
    /* eslint-enable prefer-const */
    $props();

-
  let repos = $state(initialRepos);
  let lock = false;
  const startup = $state<{ error?: ErrorWrapper }>({ error: undefined });