v1.0.7 (fixes #17)
This commit is contained in:
@@ -24,6 +24,7 @@ interface CacheState {
|
||||
getObjectList: (key: string) => ObjectListEntry[] | undefined;
|
||||
invalidateObjectList: (key: string) => void;
|
||||
invalidateAllObjectLists: () => void;
|
||||
clearAll: () => void;
|
||||
}
|
||||
|
||||
export const useCacheStore = create<CacheState>()((set, get) => ({
|
||||
@@ -75,4 +76,8 @@ export const useCacheStore = create<CacheState>()((set, get) => ({
|
||||
invalidateAllObjectLists: () => {
|
||||
set({ objectLists: {} });
|
||||
},
|
||||
|
||||
clearAll: () => {
|
||||
set({ displayNames: {}, objectLists: {} });
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user