Fix HomeSidebar repositories navigation

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.
This commit is contained in:
Sebastian Martinez
2025-03-19 11:23:48 +01:00
parent a35077707f
commit acd06d00a9
+1 -8
View File
@@ -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 });