Remove cleanup
This commit is contained in:
@@ -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> = {
|
export const NuxSchemas: Record<Nux, zod.ZodObject<any> | undefined> = {
|
||||||
[Nux.NeueTypography]: undefined,
|
[Nux.NeueTypography]: undefined,
|
||||||
[Nux.ExploreInterestsCard]: undefined,
|
[Nux.ExploreInterestsCard]: undefined,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {useMutation, useQueryClient} from '@tanstack/react-query'
|
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 {parseAppNux, serializeAppNux} from '#/state/queries/nuxs/util'
|
||||||
import {
|
import {
|
||||||
preferencesQueryKey,
|
preferencesQueryKey,
|
||||||
@@ -93,8 +93,6 @@ export function useSaveNux() {
|
|||||||
await queryClient.invalidateQueries({
|
await queryClient.invalidateQueries({
|
||||||
queryKey: preferencesQueryKey,
|
queryKey: preferencesQueryKey,
|
||||||
})
|
})
|
||||||
// do not await, just cleaning up
|
|
||||||
agent.bskyAppRemoveNuxs(retiredNuxNames).catch(() => {})
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user