perf(profile): optimize profile batch update and worker config

This commit is contained in:
Tunglies
2026-05-29 20:18:40 +08:00
parent 6e6c537e6b
commit 3444d594ac
3 changed files with 88 additions and 33 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const [ThemeModeProvider, useThemeMode, useSetThemeMode] = createContextState<
// save the state of each profile item loading
const [LoadingCacheProvider, useLoadingCache, useSetLoadingCache] =
createContextState<Record<string, boolean>>({})
createContextState<Set<string>>(new Set())
// save update state
const [UpdateStateProvider, useUpdateState, useSetUpdateState] =