fix: profile item loading state

This commit is contained in:
GyDi
2022-03-21 11:40:27 +08:00
committed by GitHub
parent 2f6efbed63
commit 3cde019208
2 changed files with 20 additions and 17 deletions

View File

@@ -10,3 +10,9 @@ export const atomLogData = atom<ApiType.LogItem[]>({
key: "atomLogData",
default: [],
});
// save the state of each profile item loading
export const atomLoadingCache = atom<Record<string, boolean>>({
key: "atomLoadingCache",
default: {},
});