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
5 changed files with 153 additions and 105 deletions
+9 -1
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)
}