Improve the language behaviors around the PWI (#3545)
* Handle leftnav overflow with longer languages' copy * Update the language dropdown to set ALL language prefs * Add hackfix to language cachebusting on PWI * Reset feeds on language change
This commit is contained in:
parent
23056daa29
commit
0b43d728e4
6 changed files with 111 additions and 14 deletions
|
@ -459,6 +459,14 @@ function assertSomePostsPassModeration(feed: AppBskyFeedDefs.FeedViewPost[]) {
|
|||
}
|
||||
}
|
||||
|
||||
export function resetPostsFeedQueries(queryClient: QueryClient, timeout = 0) {
|
||||
setTimeout(() => {
|
||||
queryClient.resetQueries({
|
||||
predicate: query => query.queryKey[0] === RQKEY_ROOT,
|
||||
})
|
||||
}, timeout)
|
||||
}
|
||||
|
||||
export function resetProfilePostsQueries(
|
||||
queryClient: QueryClient,
|
||||
did: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue