File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed
apps/desktop/src/components/v3 Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 85
85
let headerMenuContext = $state <BranchHeaderContextItem >();
86
86
87
87
const stackingReorderDropzoneManagerFactory = getContext (StackingReorderDropzoneManagerFactory );
88
- const stackingReorderDropzoneManager = stackingReorderDropzoneManagerFactory .build (
89
- stackId ,
90
- branches .map ((s ) => ({ name: s .name , commitIds: s .commits .map ((p ) => p .id ) }))
88
+ const stackingReorderDropzoneManager = $derived (
89
+ stackingReorderDropzoneManagerFactory .build (
90
+ stackId ,
91
+ branches .map ((s ) => ({ name: s .name , commitIds: s .commits .map ((p ) => p .id ) }))
92
+ )
91
93
);
92
94
</script >
93
95
Original file line number Diff line number Diff line change 62
62
63
63
let dropzoneActivated = $state (false );
64
64
65
- const stackState = uiState .stack (stack .id );
65
+ const stackState = $derived ( uiState .stack (stack .id ) );
66
66
const selection = $derived (stackState .selection );
67
- const assignedSelection = idSelection .getById ({
68
- type: ' worktree' ,
69
- stackId: stack .id
70
- });
71
- const lastAddedAssigned = assignedSelection .lastAdded ;
67
+ const assignedSelection = $derived (
68
+ idSelection .getById ({
69
+ type: ' worktree' ,
70
+ stackId: stack .id
71
+ })
72
+ );
73
+ const lastAddedAssigned = $derived (assignedSelection .lastAdded );
72
74
const assignedKey = $derived (
73
75
$lastAddedAssigned ?.key ? readKey ($lastAddedAssigned .key ) : undefined
74
76
);
87
89
const selectedKey = $derived (
88
90
$selectedLastAdded ?.key ? readKey ($selectedLastAdded .key ) : undefined
89
91
);
90
- const changes = uncommittedService .changesByStackId (stack .id || null );
92
+ const changes = $derived ( uncommittedService .changesByStackId (stack .id || null ) );
91
93
92
94
let laneEl = $state <HTMLDivElement >();
93
95
let detailsEl = $state <HTMLDivElement >();
You can’t perform that action at this time.
0 commit comments