Remove cleanup

This commit is contained in:
Eric Bailey
2025-06-20 11:32:44 -05:00
parent b8c804fe84
commit 6fcae251fe
2 changed files with 1 additions and 11 deletions
-8
View File
@@ -24,14 +24,6 @@ export type AppNux = BaseNux<
}
>
/**
* Nuxes that have been retired and should be cleared from storage.
*/
export enum RetiredNux {
NeueTypography = 'NeueTypography',
}
export const retiredNuxNames = Object.values(RetiredNux)
export const NuxSchemas: Record<Nux, zod.ZodObject<any> | undefined> = {
[Nux.NeueTypography]: undefined,
[Nux.ExploreInterestsCard]: undefined,
+1 -3
View File
@@ -1,6 +1,6 @@
import {useMutation, useQueryClient} from '@tanstack/react-query'
import {AppNux, Nux, retiredNuxNames} from '#/state/queries/nuxs/definitions'
import {type AppNux, type Nux} from '#/state/queries/nuxs/definitions'
import {parseAppNux, serializeAppNux} from '#/state/queries/nuxs/util'
import {
preferencesQueryKey,
@@ -93,8 +93,6 @@ export function useSaveNux() {
await queryClient.invalidateQueries({
queryKey: preferencesQueryKey,
})
// do not await, just cleaning up
agent.bskyAppRemoveNuxs(retiredNuxNames).catch(() => {})
},
})
}