Recent requests/workspaces. Closes #1

This commit is contained in:
Gregory Schier
2023-10-28 18:46:54 -07:00
parent 6e273ae2a3
commit 23e77dfec1
5 changed files with 101 additions and 8 deletions

View File

@@ -10,8 +10,15 @@ import { DEFAULT_FONT_SIZE } from '../lib/constants';
import { NAMESPACE_NO_SYNC } from '../lib/keyValueStore';
import type { HttpRequest, HttpResponse, Model, Workspace } from '../lib/models';
import { modelsEq } from '../lib/models';
import { useRecentRequests } from '../hooks/useRecentRequests';
import { useRecentWorkspaces } from '../hooks/useRecentWorkspaces';
import { useRecentEnvironments } from '../hooks/useRecentEnvironments';
export function GlobalHooks() {
useRecentWorkspaces();
useRecentEnvironments();
useRecentRequests();
const queryClient = useQueryClient();
const { wasUpdatedExternally } = useRequestUpdateKey(null);