Add back a simple useGitFetch hook

This commit is contained in:
Alex Gleason committed 2025-12-24 21:38:57 -06:00
1 parent a9c1922e51
commit e599f76787
5 files changed
+43 -9

No files matched your search

+4
View File
@@ -36,6 +36,7 @@ import { useAutoBuild } from '@/hooks/useAutoBuild';
import { useToast } from '@/hooks/useToast';
import { useFS } from '@/hooks/useFS';
import { useFSPaths } from '@/hooks/useFSPaths';
import { useGitFetch } from '@/hooks/useGitFetch';
import { useQueryClient } from '@tanstack/react-query';
import JSZip from 'jszip';
import { cn } from '@/lib/utils';
@@ -72,6 +73,9 @@ export function ProjectView() {
const build = useBuildProject(projectId!);
const { data: isPreviewable = false } = useIsProjectPreviewable(projectId!);
// Automatically fetch from remote to keep git status updated
useGitFetch(projectId ? `${projectsPath}/${projectId}` : undefined);
// Enable auto-build for previewable projects
useAutoBuild({
projectId: projectId!,