Skip to content

Commit

Permalink
include workspace context change
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Dec 23, 2024
1 parent a5f00ed commit 655eaf4
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,18 @@ interface WorkspaceState {
setHidden: SetVisibleOrHiddenFn;
}

export const WorkspaceContext = React.createContext<WorkspaceState>(
new Error('WorkspaceContext should never be uninitialized') as any,
);
export const WorkspaceContext = React.createContext<WorkspaceState>({
allRepos: [],
visibleRepos: [],
data: {},
refetch: () => Promise.reject<any>(),
toggleVisible: () => {},
loading: false,
locationEntries: [],
locationStatuses: {},
setVisible: () => {},
setHidden: () => {},
});

interface BaseLocationParams {
localCacheIdPrefix?: string;
Expand Down

0 comments on commit 655eaf4

Please sign in to comment.