diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-12 22:02:28 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-12 22:02:28 +0000 |
commit | 1512b5cf68e9e92801a894392569b444fd6af1d1 (patch) | |
tree | f756f3a4405127839e6f31ee46945e0b2cfe954f /src/state/queries/notifications/feed.ts | |
parent | a3c09f9f862a4b4abe43cbb6d1042369fb1e14ba (diff) | |
download | voidsky-1512b5cf68e9e92801a894392569b444fd6af1d1.tar.zst |
run linter
Diffstat (limited to 'src/state/queries/notifications/feed.ts')
-rw-r--r-- | src/state/queries/notifications/feed.ts | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/state/queries/notifications/feed.ts b/src/state/queries/notifications/feed.ts index 405d054d4..dbc23fcbd 100644 --- a/src/state/queries/notifications/feed.ts +++ b/src/state/queries/notifications/feed.ts @@ -16,24 +16,26 @@ * 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 {useModerationOpts} from '../preferences' -import {useUnreadNotificationsApi} from './unread' -import {fetchPage} from './util' -import {FeedPage} from './types' +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' -export type {NotificationType, FeedNotification, FeedPage} from './types' +export type {FeedNotification, FeedPage, NotificationType} from './types' const PAGE_SIZE = 30 |