mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add back a simple useGitFetch hook
This commit is contained in:
5 files changed
+43
-9
No files matched your search
@@ -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!,
|
||||
|
||||
Reference in new issue
Block a user