Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[APP-2038] fix feeds not refreshing (#10167)

Co-authored-by: Eric Bailey <git@esb.lol>

authored by

Spence Pope
Eric Bailey
and committed by
GitHub
011d8d2f c0d3010f

+14 -2
+1
src/components/StarterPack/Main/PostsList.tsx
··· 46 46 return ( 47 47 <View> 48 48 <PostFeed 49 + enabled 49 50 feed={feed} 50 51 pollInterval={60e3} 51 52 scrollElRef={scrollElRef}
+1
src/screens/Profile/ProfileFeed/index.tsx
··· 185 185 186 186 <FeedFeedbackProvider value={feedFeedback}> 187 187 <PostFeed 188 + enabled 188 189 feed={feed} 189 190 feedParams={feedParams} 190 191 pollInterval={60e3}
+12 -2
src/view/com/posts/PostFeed.tsx
··· 38 38 RQKEY, 39 39 usePostFeedQuery, 40 40 } from '#/state/queries/post-feed' 41 + import {truncateAndInvalidate} from '#/state/queries/util' 41 42 import {useSession} from '#/state/session' 42 43 import {useProgressGuide} from '#/state/shell/progress-guide' 43 44 import {useSelectedFeed} from '#/state/shell/selected-feed' ··· 700 701 }) 701 702 setIsPTRing(true) 702 703 try { 703 - await refetch() 704 + await truncateAndInvalidate(queryClient, RQKEY(feed, feedParams)) 704 705 onHasNew?.(false) 705 706 } catch (err) { 706 707 logger.error('Failed to refresh posts feed', {message: err}) 707 708 } 708 709 setIsPTRing(false) 709 - }, [ax, refetch, setIsPTRing, onHasNew, feed, feedType, enabled]) 710 + }, [ 711 + ax, 712 + queryClient, 713 + setIsPTRing, 714 + onHasNew, 715 + feed, 716 + feedParams, 717 + feedType, 718 + enabled, 719 + ]) 710 720 711 721 const onEndReached = useCallback(async () => { 712 722 if (isFetching || !hasNextPage || isError) return