Restore recent environment on workspace change

Fixes #6
This commit is contained in:
Gregory Schier
2023-10-29 11:31:13 -07:00
parent 7dac299edd
commit 9dd4489049
4 changed files with 40 additions and 19 deletions

View File

@@ -18,9 +18,12 @@ import { useEffect } from 'react';
import { setPathname } from '../lib/persistPathname';
export function GlobalHooks() {
// Include here so they always update, even
// if no component references them
useRecentWorkspaces();
useRecentEnvironments();
useRecentRequests();
const queryClient = useQueryClient();
const { wasUpdatedExternally } = useRequestUpdateKey(null);