mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix warnings and errors
This commit is contained in:
@ -144,7 +144,7 @@ const TimelineRefresh: React.FC<Props> = ({
|
||||
>(queryKey)?.pages[0]
|
||||
|
||||
prevActive.current = true
|
||||
prevStatusId.current = firstPage?.body[0].id
|
||||
prevStatusId.current = firstPage?.body[0]?.id
|
||||
|
||||
await queryFunctionTimeline({
|
||||
queryKey,
|
||||
@ -182,7 +182,7 @@ const TimelineRefresh: React.FC<Props> = ({
|
||||
flRef.current?.scrollToOffset({ offset: scrollY.value - 15, animated: true })
|
||||
}
|
||||
|
||||
await new Promise(promise => setTimeout(promise, 32))
|
||||
await new Promise(promise => setTimeout(promise, 64))
|
||||
queryClient.setQueryData<
|
||||
InfiniteData<
|
||||
PagedResponse<(Mastodon.Status | Mastodon.Notification | Mastodon.Conversation)[]>
|
||||
|
Reference in New Issue
Block a user