Tweak feed card to prevent spinnerz when pushing to screen (#4600)

This commit is contained in:
Hailey 2024-06-21 19:59:08 -07:00 committed by GitHub
parent 1715afd80e
commit 35f64535cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 153 additions and 105 deletions

View file

@ -578,7 +578,7 @@ function precacheFeed(queryClient: QueryClient, hydratedFeed: FeedSourceInfo) {
)
}
function precacheList(
export function precacheList(
queryClient: QueryClient,
list: AppBskyGraphDefs.ListView,
) {
@ -588,3 +588,11 @@ function precacheList(
list,
)
}
export function precacheFeedFromGeneratorView(
queryClient: QueryClient,
view: AppBskyFeedDefs.GeneratorView,
) {
const hydratedFeed = hydrateFeedGenerator(view)
precacheFeed(queryClient, hydratedFeed)
}