Standardize sidebar lifecycle on folder switch (key remount vs prop effects) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Location
src/lib/features/app-shell/WorkbenchView.svelte:66,FilesSidebar.svelte,GitGraph.svelte,GitStashList.svelte,GitBranches.svelteProblem
WorkbenchView.sveltewraps sidebar components in{#key folderPath}, causing a full teardown and remount whenever switching between tabs with different folders. Meanwhile,FilesSidebar,GitGraph,GitStashList, andGitBranchesstill retain internal$effectblocks designed to reset state onfolderPathprop changes.Suggested Fix
Pick one consistent lifecycle approach:
{#key folderPath}inWorkbenchViewand let prop-driven reactivity handle folder transitions cleanly.