优化:缓存查询与智能分析页面,修复组织下钻和草稿保留
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
export const WORKSPACE_INVALIDATED = 'quality-workspace-invalidated';
|
||||
export const PageCacheContext = createContext({ active: true, initialSearch: undefined as string | undefined, refreshKey: 0, onLocationChange: (_search: string) => {} });
|
||||
export const usePageCache = () => useContext(PageCacheContext);
|
||||
Reference in New Issue
Block a user