Skip to content

Commit 6cbcd9c

Browse files
committed
🤖 fmt: reformat dependency arrays per prettier
1 parent 6b2eef0 commit 6cbcd9c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/components/AppLoader.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ function AppLoaderInner(props: {
7777
} else {
7878
setStoresSynced(false);
7979
}
80-
}, [workspaceContext.loading, workspaceContext.workspaceMetadata, workspaceStore, gitStatusStore]);
80+
}, [
81+
workspaceContext.loading,
82+
workspaceContext.workspaceMetadata,
83+
workspaceStore,
84+
gitStatusStore,
85+
]);
8186

8287
// Restore workspace from URL hash (runs once when stores are synced)
8388
const [hasRestoredFromHash, setHasRestoredFromHash] = useState(false);

src/contexts/WorkspaceContext.test.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,9 @@ describe("WorkspaceContext", () => {
514514
});
515515

516516
test("reacts to metadata update events (new workspace)", async () => {
517-
let metadataListener: ((event: {
518-
workspaceId: string;
519-
metadata: FrontendWorkspaceMetadata | null;
520-
}) => void) | null = null;
517+
let metadataListener:
518+
| ((event: { workspaceId: string; metadata: FrontendWorkspaceMetadata | null }) => void)
519+
| null = null;
521520

522521
createMockAPI({
523522
list: () => Promise.resolve([]),
@@ -574,10 +573,9 @@ describe("WorkspaceContext", () => {
574573
createdAt: "2025-01-01T00:00:00.000Z",
575574
});
576575

577-
let metadataListener: ((event: {
578-
workspaceId: string;
579-
metadata: FrontendWorkspaceMetadata | null;
580-
}) => void) | null = null;
576+
let metadataListener:
577+
| ((event: { workspaceId: string; metadata: FrontendWorkspaceMetadata | null }) => void)
578+
| null = null;
581579

582580
createMockAPI({
583581
list: () => Promise.resolve([workspace]),

0 commit comments

Comments
 (0)