Project manager (#697)

* Project manager: Load, Rename, Duplicate (#712)

* Project Manager: Create, Delete (#723)
This commit is contained in:
Ary
2024-01-29 06:06:33 -07:00
committed by GitHub
parent 4c77d26a71
commit 3c83f4d15b
16 changed files with 473 additions and 69 deletions
@@ -11,7 +11,7 @@ const placeholderProjectList: ProjectFileListResponse = {
};
export function useProjectList() {
const { data, status } = useQuery({
const { data, status, refetch } = useQuery({
queryKey: PROJECT_LIST,
queryFn: getProjects,
placeholderData: placeholderProjectList,
@@ -20,5 +20,5 @@ export function useProjectList() {
refetchInterval: queryRefetchIntervalSlow,
networkMode: 'always',
});
return { data: data ?? placeholderProjectList, status };
return { data: data ?? placeholderProjectList, status, refetch };
}