This commit is contained in:
Stephen Zhou 2026-01-19 18:00:55 +08:00
parent 51dd7871c5
commit 6e08e7ff95
No known key found for this signature in database

View File

@ -65,17 +65,12 @@ export const appStoreSelectors = {
appDetails,
}
const get = useAppStore.getState
const set = useAppStore.setState
async function fetchAppDetail(appID: string | undefined) {
if (!appID)
return null
const cur = get().appDetails?.[appID]
if (cur)
return cur
const appDetail = await serviceGet<App>(`/apps/${appID}`)
set(state => ({
appDetails: {