hoist useprefs

This commit is contained in:
Samuel Newman
2026-03-23 19:17:39 +02:00
parent 21d8b07bfe
commit 226f7f4fd2
50 changed files with 283 additions and 414 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import {Trans} from '@lingui/react/macro'
import {PROD_DEFAULT_FEED} from '#/lib/constants'
import {logger} from '#/logger'
import {
usePreferencesQuery,
usePreferences,
useRemoveFeedMutation,
useReplaceForYouWithDiscoverFeedMutation,
} from '#/state/queries/preferences'
@@ -23,7 +23,7 @@ export function FeedShutdownMsg({feedUri}: {feedUri: string}) {
const t = useTheme()
const {_} = useLingui()
const setSelectedFeed = useSetSelectedFeed()
const {data: preferences} = usePreferencesQuery()
const preferences = usePreferences()
const {mutateAsync: removeFeed, isPending: isRemovePending} =
useRemoveFeedMutation()
const {mutateAsync: replaceFeedWithDiscover, isPending: isReplacePending} =