Sync window title (Closes #13)

This commit is contained in:
Gregory Schier
2023-11-10 15:55:50 -08:00
parent 5ef7c6a1a2
commit 8381104302
4 changed files with 28 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ import { useRecentWorkspaces } from '../hooks/useRecentWorkspaces';
import { requestsQueryKey } from '../hooks/useRequests';
import { useRequestUpdateKey } from '../hooks/useRequestUpdateKey';
import { responsesQueryKey } from '../hooks/useResponses';
import { useSyncWindowTitle } from '../hooks/useSyncWindowTitle';
import { workspacesQueryKey } from '../hooks/useWorkspaces';
import { trackPage } from '../lib/analytics';
import { DEFAULT_FONT_SIZE } from '../lib/constants';
@@ -26,6 +27,8 @@ export function GlobalHooks() {
useRecentEnvironments();
useRecentRequests();
useSyncWindowTitle();
const queryClient = useQueryClient();
const { wasUpdatedExternally } = useRequestUpdateKey(null);