diff options
Diffstat (limited to 'src/state/queries/notifications/feed.ts')
-rw-r--r-- | src/state/queries/notifications/feed.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/state/queries/notifications/feed.ts b/src/state/queries/notifications/feed.ts index dbc23fcbd..405d054d4 100644 --- a/src/state/queries/notifications/feed.ts +++ b/src/state/queries/notifications/feed.ts @@ -16,26 +16,24 @@ * 3. Don't call this query's `refetch()` if you're trying to sync latest; call `checkUnread()` instead. */ +import {useEffect, useRef} from 'react' import {AppBskyFeedDefs} from '@atproto/api' import { + useInfiniteQuery, InfiniteData, - QueryClient, QueryKey, - useInfiniteQuery, useQueryClient, + QueryClient, } from '@tanstack/react-query' -import {useEffect, useRef} from 'react' - -import {useMutedThreads} from '#/state/muted-threads' - -import {STALE} from '..' import {useModerationOpts} from '../preferences' -import {embedViewRecordToPostView, getEmbeddedPost} from '../util' -import {FeedPage} from './types' import {useUnreadNotificationsApi} from './unread' import {fetchPage} from './util' +import {FeedPage} from './types' +import {useMutedThreads} from '#/state/muted-threads' +import {STALE} from '..' +import {embedViewRecordToPostView, getEmbeddedPost} from '../util' -export type {FeedNotification, FeedPage, NotificationType} from './types' +export type {NotificationType, FeedNotification, FeedPage} from './types' const PAGE_SIZE = 30 |