Skip to content

Commit 70acba2

Browse files
committed
fix: run updateGitStatus() immediately on load
1 parent a78efdd commit 70acba2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hooks/useGitStatus.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export function useGitStatus(
3535

3636
initializeMetadata();
3737

38+
// Run immediately on mount
39+
void updateGitStatus();
40+
3841
// Poll git status every 1 second
3942
const interval = setInterval(() => {
4043
void updateGitStatus();

0 commit comments

Comments
 (0)